Migrating wiki contents from Google Code

This commit is contained in:
Google Code Exporter
2015-03-15 10:11:53 -04:00
commit e09fe56554
21 changed files with 990 additions and 0 deletions

28
getButtons.md Normal file
View File

@@ -0,0 +1,28 @@
# getButtons Reference (TM1638) #
Returns the pressed buttons as a bit set (left to right).
```
byte getButtons();
```
| Argument | Detail | Default |
|:---------|:-------|:--------|
| | | |
# Example #
The expression is true if the leftmost button is pressed:
```
module1.getButtons() == 0b00000001
```
The expression is true if the rightmost button is pressed:
```
module1.getButtons() == 0b10000000
```
The expression is true if both middle buttons are pressed:
```
module1.getButtons() == 0b00011000
```