Commit 297af603 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

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

parent 287180a0
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)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment