examples/hwapi: Use Signal for inverted LED on ESP-12.
This commit is contained in:
parent
287180a0a8
commit
297af6036e
|
@ -1,5 +1,5 @@
|
|||
from machine import Pin
|
||||
from machine import Pin, Signal
|
||||
|
||||
# ESP12 module as used by many boards
|
||||
# Blue LED on pin 2
|
||||
LED = Pin(2, Pin.OUT)
|
||||
# Blue LED on pin 2, active low (inverted)
|
||||
LED = Signal(Pin(2, Pin.OUT), inverted=True)
|
||||
|
|
Loading…
Reference in New Issue