PGO6_VoteController (Astrid Vanneste)

Dependencies:   MQTT

Fork of PGO6_VoteController_template by Jens de hoog

Revision:
5:ba94770ce1c7
Parent:
3:376ac6744373
--- a/debounce_button.h	Mon Oct 08 13:37:19 2018 +0000
+++ b/debounce_button.h	Mon Oct 08 15:39:22 2018 +0000
@@ -15,6 +15,9 @@
 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
 
+extern Timeout debounce_time;
+extern Timeout multiclick_time;
+
 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