class LED – LED object
class LED – LED object
The LED object controls an individual LED (Light Emitting Diode).
Constructors
pyb.LED
class pyb.LED(id)Create an LED object associated with the given LED:
idis the LED number, 1-4.
Methods
LED.off
LED.off()Turn the LED off.
LED.on
LED.on()Turn the LED on, to maximum intensity.
LED.toggle
LED.toggle()Toggle the LED between on (maximum intensity) and off. If the LED is at non-zero intensity then it is considered “on” and toggle will turn it off.
