Migrating wiki contents from Google Code
This commit is contained in:
24
clearDisplayDigit.md
Normal file
24
clearDisplayDigit.md
Normal file
@@ -0,0 +1,24 @@
|
||||
# clearDisplayDigit Reference (TM1638/TM1640) #
|
||||
|
||||
Clear a single 7-segment display.
|
||||
|
||||
```
|
||||
void clearDisplayDigit(byte pos, boolean dot);
|
||||
```
|
||||
|
||||
| Argument | Detail | Default |
|
||||
|:---------|:-------|:--------|
|
||||
| pos | The display to clear, starting at position 0 (leftmost). | _required_ |
|
||||
| dot | The dot state on the 7-segment display | _required_ |
|
||||
|
||||
# Example #
|
||||
|
||||
Clear the second 7-segment display (counting from the left), but leave the dot lit.
|
||||
```
|
||||
module1.clearDisplayDigit(1, true);
|
||||
```
|
||||
|
||||
Clear the third 7-segment display (counting from the left), including the dot.
|
||||
```
|
||||
module1.clearDisplayDigit(2, false);
|
||||
```
|
||||
Reference in New Issue
Block a user