I've got a seven segment LED backpack I'm trying to get working with a beaglebone black. I've got a clean install of the latest stable BB image (Debian 9.4 2018-06-17 4GB SD IoT) and followed the instructions given here (https://learn.adafruit.com/led-backpack ... ack/wiring) until I try to run the sample code. I then get this error:
Code: Select all
Traceback (most recent call last):
File "sevensegment_test.py", line 33, in <module>
display.begin()
File "/usr/local/lib/python2.7/dist-packages/Adafruit_LED_Backpack-1.8.1-py2.7.egg/Adafruit_LED_Backpack/HT16K33.py", line 53, in begin
self._device.writeList(HT16K33_SYSTEM_SETUP | HT16K33_OSCILLATOR, [])
File "/usr/local/lib/python2.7/dist-packages/Adafruit_GPIO-1.0.3-py2.7.egg/Adafruit_GPIO/I2C.py", line 129, in writeList
self._bus.write_i2c_block_data(self._address, register, data)
File "/usr/local/lib/python2.7/dist-packages/Adafruit_PureIO-0.2.3-py2.7.egg/Adafruit_PureIO/smbus.py", line 294, in write_i2c_block_data
self._device.write(data)
IOError: [Errno 16] Device or resource busy
Code: Select all
i2cdetect -r 2
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-2 using read byte commands.
I will probe address range 0x03-0x77.
Continue? [Y/n] y
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- UU UU UU UU -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: 70 -- -- -- -- -- -- --
root@beaglebone:~/Adafruit_Python_LED_Backpack/examples#
Thanks!