First Working Display

First working LED Display - Clock is functional.
This commit is contained in:
Chuck
2025-04-07 19:05:50 -05:00
parent 4155505153
commit ed392cf293
2 changed files with 42 additions and 8 deletions

View File

@@ -22,7 +22,7 @@ class Clock:
while True:
current_time = self.get_current_time()
# Center the text on the display
text_width = self.display_manager.font.getsize(current_time)[0]
text_width = self.display_manager.font.getlength(current_time)
x = (self.display_manager.matrix.width - text_width) // 2
y = (self.display_manager.matrix.height - 24) // 2