Open ghost opened 4 years ago
Could it be that you try to read from address 80 but there is nothing there?
What does i2cdetect -y BUS_NUMBER
tell you? (Of course you must replace BUS_NUMBER with actual bus you want to check ;) ).
On my Pi, I have one bus:
$ i2cdetect -l
i2c-1 i2c bcm2835 I2C adapter I2C adapter
And if I want to see what there on that bus:
$ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: 50 51 -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Voila. Two accessible addresses. 0x50 and 0x51, i.e. 80 and 81 in decimal.
Hey there,
Looking forward to using this library. I ran the pip install and run one the basic examples to read a byte.
I get the following error:
which I believe is permission related as
i2cdetect -l
returns:I took it out of virtualenv but still get an error. Any suggestions?