PGO6_VoteController (Astrid Vanneste)
Fork of PGO6_VoteController_template by
Diff: debounce_button.cpp
- Revision:
- 4:08da93eb6014
- Parent:
- 3:376ac6744373
- Child:
- 5:ba94770ce1c7
--- a/debounce_button.cpp Mon Oct 08 12:56:29 2018 +0000 +++ b/debounce_button.cpp Mon Oct 08 13:37:19 2018 +0000 @@ -33,9 +33,13 @@ */ void button1_multiclick_reset_cb(void) { + printf("multiclick disable"); button1_busy = false; multiclick_state = internal_click_count; internal_click_count = 0; + + DigitalOut led1(LED1); + led1 = 0; } /** @@ -45,7 +49,7 @@ */ void button1_enabled_cb(void) { - + button1_enabled = true; } /**