vote controller implementatie van Jonas De Rynck

Dependencies:   MQTT

Fork of PGO6_VoteController_template by Jens de hoog

Revision:
2:5f2104244c27
Parent:
0:fd29cd85e75e
--- a/debounce_button.h	Sun Oct 29 23:01:06 2017 +0000
+++ b/debounce_button.h	Mon Oct 30 16:43:58 2017 +0000
@@ -9,11 +9,14 @@
     
 */
 
-extern volatile bool button1_pressed;   // Used in the main loop
+//extern volatile bool button1_pressed = false;   // 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_busy ;      // Informs the mainloop that the user is clicking the button
+extern volatile int multiclick_state_mem; // remembers how many times the button was pressed after the state reset to 0.
+extern volatile bool isready;
 
 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_onpressed_cb(void);        // Callback which is called when the user presses the button
+void testing(void);                     //function that uses LEDS for testing (couldn't use printf's because my computer couldn't find the right COM port).
\ No newline at end of file