- ID: led
- Name: Light-emitting Diode (LED)
- Other Names: Grove LED
- Category: led
- Manufacturer: seeed
- Connection: gpio
- Kit: gsk
UPM module for the LED (or other similar light-emitting diodes). An LED is a p-n junction semiconductor which emits light in response to voltage. The longer wire of an LED connects to the positive seat (anode); the shorter wire connects to the negative seat (cathode). The flat side of the bulb corresponds to the cathode, while the rounded side corresponds to the anode.
std::cout << led.name() << std::endl;
for (int i = 0; i < 10; i++) {
led.on();
upm_delay(1);
led.off();
upm_delay(1);
}