Skip to content
Snippets Groups Projects
Commit 297af603 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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

parent 287180a0
No related branches found
No related tags found
No related merge requests found
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)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment