432 B
432 B
setLEDs Reference (TM1638)
Set all the LEDs.
void setLEDs(word led);
| Argument | Detail | Default |
|---|---|---|
| led | The LEDs to set. MSB byte for the green LEDs, LSB for the red LEDs. | required |
Example
Light up all the red LEDs.
module1.setLEDs(0x00FF);
Light up all the green LEDs.
module1.setLEDs(0xFF00);
Light up all the LEDs.
module1.setLEDs(0xFFFF);