8000 examples/hwapi: Use Signal for inverted LED on ESP-12. · micropython/micropython@297af60 · GitHub
[go: up one dir, main page]

Skip to content

Commit 297af60

Browse files
author
Paul Sokolovsky
committed
examples/hwapi: Use Signal for inverted LED on ESP-12.
1 parent 287180a commit 297af60

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from machine import Pin
1+
from machine import Pin, Signal
22

33
# ESP12 module as used by many boards
4-
# Blue LED on pin 2
5-
LED = Pin(2, Pin.OUT)
4+
# Blue LED on pin 2, active low (inverted)
5+
LED = Signal(Pin(2, Pin.OUT), inverted=True)

0 commit comments

Comments
 (0)
0