add i2c address
This commit is contained in:
parent
ace7352967
commit
c1e49d831e
|
@ -25,7 +25,7 @@ class Controller:
|
|||
|
||||
# Create the LED segment class.
|
||||
# This creates a 14 segment 4 character display:
|
||||
self.display = segments.Seg14x4(self.i2c)
|
||||
self.display = segments.Seg14x4(self.i2c, address=0x70) # find address with "sudo i2cdetect -y 1" . you need to install: sudo apt-get install -y python-smbus i2c-tools
|
||||
|
||||
# Clear the display.
|
||||
self.display.fill(0)
|
||||
|
|
Loading…
Reference in New Issue