examples/hwapi: Use Signal for inverted LED on ESP-12.

This commit is contained in:
Paul Sokolovsky 2017-01-01 20:05:35 +03:00
parent 287180a0a8
commit 297af6036e

View File

@ -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)