Hardware Reference
In-Depth Information
The i2cdetect output
We should change the bus address in the code to drive the 7-segment backpack. Line 11 in
the Adafruit_I2C.py file needs to be changed in the code according to the bus to which
the device is connected. Hence, line 11 should be:
def __init__(self, address, bus=smbus.SMBus(1), debug=False):
Engage thrusters
1.
The 7-segment backpack is a device controlled via an I2C port. Any I2C device
has four pins, namely clock, data, power supply, and ground. The I2C device
needs to be connected to the Cobbler, as shown in the earlier screenshot.
 
Search WWH ::




Custom Search