Wouter Van den Bogaert
/
PGO6_VoteController_template
PGO6
Diff: debounce_button.cpp
- Revision:
- 4:15e7cac255da
- Parent:
- 3:14b20a4f36d0
--- a/debounce_button.cpp Mon Oct 28 16:35:27 2019 +0000 +++ b/debounce_button.cpp Thu Oct 31 15:19:45 2019 +0100 @@ -25,7 +25,7 @@ such that it can proceed its program. - turns the built-in LED off. Therefore, the user gets informed that the program stopped counting the clicks. */ -void button1_multiclick_reset_cb(void) { +/*void button1_multiclick_reset_cb(void) { button_count = multiclick_state; multiclick_state =0; @@ -35,17 +35,17 @@ DigitalOut led1(LED1); led1 = 0; -} +}*/ /** TODO ---- This function enables the button again, such that unwanted clicks of the bouncing button get ignored. */ -void button1_enabled_cb(void) +/*void button1_enabled_cb(void) { button1_enabled = true; -} +}*/ /** TODO @@ -60,7 +60,7 @@ - informs the main loop that the user is clicking the button. Therefore, this main loop cannot continue its procedure until the clicks within 1 second have been counted. */ -void button1_onpressed_cb(void) +/*void button1_onpressed_cb(void) { Timeout someTimeout; // Turn led on @@ -83,4 +83,4 @@ someTimeout.attach(callback(&button1_multiclick_reset_cb), 1.0); } -} \ No newline at end of file +}*/ \ No newline at end of file