![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
PGO6_VoteController (Astrid Vanneste)
Fork of PGO6_VoteController_template by
Diff: debounce_button.h
- Revision:
- 3:376ac6744373
- Parent:
- 0:fd29cd85e75e
- Child:
- 5:ba94770ce1c7
diff -r 5b7d055dbc91 -r 376ac6744373 debounce_button.h --- a/debounce_button.h Tue Oct 31 09:01:56 2017 +0000 +++ b/debounce_button.h Mon Oct 08 12:56:29 2018 +0000 @@ -9,11 +9,13 @@ */ -extern volatile bool button1_pressed; // Used in the main loop -extern volatile bool button1_enabled; // Used for debouncing -extern volatile int multiclick_state; // Counts how many clicks occured in the time slot, used in main loop -extern volatile bool button1_busy; // Informs the mainloop that the user is clicking the button +extern volatile bool button1_pressed; // Used in the main loop +extern volatile bool button1_enabled; // Used for debouncing +extern volatile int multiclick_state; // Counts how many clicks occured in the time slot, used in main loop +extern volatile bool button1_busy; // Informs the mainloop that the user is clicking the button => busy multiclick +extern volatile int internal_click_count; // Counts how many clicks occured in the time slot -void button1_multiclick_reset_cb(void); // Resets the amount of clicks, but stores this value for the usage in the main loop -void button1_enabled_cb(void); // Enables the button again after a timeout, used for debouncing the button -void button1_onpressed_cb(void); // Callback which is called when the user presses the button \ No newline at end of file +void button1_multiclick_reset_cb(void); // Resets the amount of clicks, but stores this value for the usage in the main loop +void button1_enabled_cb(void); // Enables the button again after a timeout, used for debouncing the button +void button1_onpressed_cb(void); // Callback which is called when the user presses the button +void init_debouncer(); \ No newline at end of file