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
|
# ESP12 module as used by many boards
|
||||||
# Blue LED on pin 2
|
# Blue LED on pin 2, active low (inverted)
|
||||||
LED = Pin(2, Pin.OUT)
|
LED = Signal(Pin(2, Pin.OUT), inverted=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user