Add brightness

This commit is contained in:
Joan
2025-12-31 12:57:05 +01:00
parent 25de6dfd55
commit 2de3439a48

View File

@@ -88,7 +88,7 @@ class Matrix64Display(SampleBase):
try: try:
brightness = get_brightness() brightness = get_brightness()
if brightness: if brightness:
self.matrix.brightness = int(float(brightness)) / 10 self.matrix.brightness = int(float(brightness)) / 10 + 1
except Exception as e: except Exception as e:
self.matrix.brightness = 5 self.matrix.brightness = 5