PGO6_VoteController (Astrid Vanneste)

Dependencies:   MQTT

Fork of PGO6_VoteController_template by Jens de hoog

Files at this revision

API Documentation at this revision

Comitter:
AstridVanneste
Date:
Mon Oct 08 13:37:19 2018 +0000
Parent:
3:376ac6744373
Child:
5:ba94770ce1c7
Commit message:
LED

Changed in this revision

debounce_button.cpp Show annotated file Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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;
 }
 
 /**
--- a/main.cpp	Mon Oct 08 12:56:29 2018 +0000
+++ b/main.cpp	Mon Oct 08 13:37:19 2018 +0000
@@ -46,6 +46,13 @@
     InterruptIn button(USER_BUTTON);
     button.fall(callback(button1_onpressed_cb));
     init_debouncer();
+    
+    printf("started!");
+    
+    while(true)
+    {
+        
+    }
 
     return 0;
 }