class LED – LED Control¶
The LED class provides an interface to control the on-board LED.
Example usage:
from machine import LED
r = LED("LED_RED")
g = LED("LED_GREEN")
b = LED("LED_BLUE")
r.on()
g.off()
b.toggle()
Constructors¶
Methods¶
- LED.() -> None
Turns the LED off.