Merge pull request #22 from lboue/LED_test

Set LED GPIO direction = OUTPUT
This commit is contained in:
Scott Shawcroft 2024-10-21 10:43:50 -07:00 committed by GitHub
commit 3aebfc781d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -11,6 +11,7 @@ class LED(on_off.OnOffLight):
def __init__(self, name, led):
super().__init__(name)
self._led = led
self._led.direction = digitalio.Direction.OUTPUT
def on(self, session):
self._led.value = True