|
Digital Scale
1.0
Digital Scale
|
Enumerations | |
| enum | SWITCH_ACTION_t { SWITCH_NONE, SWITCH_SHORT, SWITCH_MED, SWITCH_LONG, SWITCH_DOUBLE } |
Variables | |
| volatile SWITCH_ACTION_t | switchAction |
| Is set by interrupt if the switch has been pressed. Must be reset by the surrounding loop. More... | |
This typedef declares the possible switch actions. We have only one pushbutton switch so we can distinct between short presses (less than two seconds), medium presses (between 2 and 10 seconds) and really long presses of more than 10s, which is used to enter calibration mode.
| enum SWITCH_ACTION_t |
| volatile SWITCH_ACTION_t switchAction |
Is set by interrupt if the switch has been pressed. Must be reset by the surrounding loop.
1.8.4