Set LED GPIO direction = OUTPUT

This commit is contained in:
Ludovic BOUÉ 2024-10-19 14:47:11 +02:00 committed by GitHub
parent 25093ece8f
commit 2aefc561a1
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