Open GoogleCodeExporter opened 8 years ago
Hmm... I think I probably don't have something hooked up properly. I can't
detect 0x70 as an i2c address
pi@raspberrypi ~/Adafruit-Raspberry-Pi-Python-Code/Adafruit_LEDBackpack $ sudo
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: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Original comment by kitchene...@gmail.com
on 16 Jan 2013 at 2:17
yep, figured it out. I resoldered my pi cobbler and the issue went away.
Original comment by kitchene...@gmail.com
on 16 Jan 2013 at 5:24
I got the same error with dection 0x70 as an i2c address:
pi@raspberrypi ~ $ sudo python 10_01_clock.py
Traceback (most recent call last):
File "10_01_clock.py", line 4, in <module>
disp = display.Adafruit7Segment()
File "/usr/local/lib/python2.7/dist-packages/i2c7segment.py", line 44, in __init__
self.bus.write_byte(address, 0x21)
IOError: [Errno 5] Input/output error
pi@raspberrypi ~ $ sudo 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: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: 70 -- -- -- -- -- -- --
Please help me to figure out what is wrong.
Original comment by kwang...@gmail.com
on 29 Sep 2013 at 4:05
I'm getting the same issue as kitchenette@gmail.com got.
Do you recall what the problem was with your cobbler / soldering?
Mine looks visually OK
Thanks
Ian
Original comment by ianw...@gmail.com
on 1 Jan 2014 at 5:00
Same error as Kwang @gmail.com have,
pi@raspberrypi ~ $ sudo python 10_01_clock.py
Traceback (most recent call last):
File "10_01_clock.py", line 4, in <module>
disp = display.Adafruit7Segment()
File "/usr/local/lib/python2.7/dist-packages/i2c7segment.py", line 44, in __init__
self.bus.write_byte(address, 0x21)
IOError: [Errno 5] Input/output error
pi@raspberrypi ~ $ sudo 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: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: 70 -- -- -- -- -- -- --
Does anyone figure it out why? and solution is?
Thanks in advance,
Original comment by takeon...@gmail.com
on 25 Feb 2014 at 3:40
I finally figured it out!
On line 42 of i2c7segment.py, it's hardcoded to use smbus.SMBus(0). However,
sometimes you need to use smbus.SMBus(1).
Run the following to figure out if you should use 0 or 1.
sudo i2cdetect -y 0
sudo i2cdetect -y 1
You should see "70" in one of these two.
If you're just trying to get it to work, edit i2c7segment.py to change the bus
to whatever you want, and re-install the library if desired.
To fix this properly, perhaps you should:
* Let the user pass a bus number.
* If the user doesn't pass a bus number, try both buses (catch the IOError when you try one in order to try the other).
Original comment by jji...@gmail.com
on 11 May 2014 at 2:07
Original issue reported on code.google.com by
kitchene...@gmail.com
on 16 Jan 2013 at 1:53