Migrating wiki contents from Google Code
This commit is contained in:
28
setLEDs.md
Normal file
28
setLEDs.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# 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);
|
||||
```
|
||||
Reference in New Issue
Block a user