Skip to content

Commit

Permalink
Inky Frame: Add LED on/off methods to SR button class.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Dec 20, 2022
1 parent e5bfe76 commit 940b31b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions micropython/modules_py/inky_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ def __init__(self, sr, idx, led, debounce=50):
self._changed = time.ticks_ms()
self._last_value = None

def led_on(self):
self.led.on()

def led_off(self):
self.led.off()

def read(self):
if self.startup_state:
self.startup_state = False
Expand Down

0 comments on commit 940b31b

Please sign in to comment.