... | ... | @@ -71,8 +71,8 @@ int main() |
|
|
#### Output
|
|
|
If we press the button for a long time, the expected output is:
|
|
|
```sh
|
|
|
0.92> Callback! btn_id=1, btn_press=0 # DOWN, as soon as the button is pressed
|
|
|
0.92> Callback! btn_id=1, btn_press=0 # btn_press=DOWN, as soon as the button is pressed
|
|
|
1.94> Button pressed (long) (10 ticks).
|
|
|
1.96> Callback! btn_id=1, btn_press=3 # LONG, after a long time when the button is released
|
|
|
1.98> Callback! btn_id=1, btn_press=1 # UP, when the button is released
|
|
|
1.96> Callback! btn_id=1, btn_press=3 # btn_press=LONG, after a long time when the button is released
|
|
|
1.98> Callback! btn_id=1, btn_press=1 # btn_press=UP, when the button is released
|
|
|
``` |
|
|
\ No newline at end of file |