[Solved] Unable to read I2C data from PiGlow with Raspberry Pi

Hi,

i’m using a Raspberry Pi B (rev 1). I have connected a PiGlow to the P1 Header. The I2C bus clock is set to 100 kHz. Writing I2C data to the PiGlow works fine, but reading doesn’t work.

 > i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

 > i2cdetect -q -y 0
      0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- 54 -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

Why is the SN3218 not detected with the first command?

Is it possible to read the I2C register from SN3218?

Thanks in advance

The SN3218 is a write-only device, it’s impossible to read from it. There wouldn’t be anything there worth reading anyway- except, presumably, the LED states you’ve just written to it which you’d already know! :D

Thank you, i skipped this sentence in the datasheet. Shame on me.