Files
tm1638-library/setLEDs.md
2015-03-15 10:11:53 -04:00

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);