mirror of
https://github.com/micropython/micropython.git
synced 2026-01-05 03:30:14 +01:00
A shorter name takes less code size, less room in scripts and is faster to type at the REPL. Tests and HW-API examples are updated to reflect the change.
6 lines
157 B
Python
6 lines
157 B
Python
from machine import Pin, Signal
|
|
|
|
# ESP12 module as used by many boards
|
|
# Blue LED on pin 2, active low (inverted)
|
|
LED = Signal(Pin(2, Pin.OUT), invert=True)
|