From c1e49d831ef757d0cf77b41de8bd0b93b09580c6 Mon Sep 17 00:00:00 2001 From: Fisch Date: Thu, 1 Jul 2021 22:32:08 +0200 Subject: [PATCH] add i2c address --- src/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controller.py b/src/controller.py index 1c33b64..76c85f2 100644 --- a/src/controller.py +++ b/src/controller.py @@ -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)