Skip to content

Commit

Permalink
Use new auto mode for reactive backlight.
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelBell committed Nov 30, 2024
1 parent e7fd8ee commit ac5ef49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/py_frozen/presto.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ def __init__(self, full_res=False, reactive_backlight=False, direct_to_fb=False)
self.display = PicoGraphics(DISPLAY_PRESTO_FULL_RES if full_res else DISPLAY_PRESTO, buffer=self.buffer, layers=1 if full_res else 2)
self.width, self.height = self.display.get_bounds()

# Reactive Backlight
self.backlight = Reactive(memoryview(self.presto), self.width, self.height) if reactive_backlight else None
if reactive_backlight:
self.presto.auto_ambient_leds(True)

@property
def touch_a(self):
Expand Down

0 comments on commit ac5ef49

Please sign in to comment.