add i2c address

This commit is contained in:
interfisch 2021-07-01 22:32:08 +02:00
parent ace7352967
commit c1e49d831e
1 changed files with 1 additions and 1 deletions

View File

@ -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)