PES 4 - Smart Medication Dispenser / PES4_ProgrammeforDesignReview2

Dependencies:   SDFileSystem mbed

Fork of PES4_Programme by PES 4 - Smart Medication Dispenser

Files at this revision

API Documentation at this revision

Comitter:
PESGruppe1
Date:
Wed Apr 11 17:25:51 2018 +0000
Parent:
95:b02e1b2a6cbd
Commit message:
Demo LEDFade and Summer working for Design Review 2

Changed in this revision

source/main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/source/main.cpp	Wed Apr 11 15:19:22 2018 +0000
+++ b/source/main.cpp	Wed Apr 11 17:25:51 2018 +0000
@@ -40,9 +40,9 @@
 
 /* Switch Summer On/Off for demo Tool (Interrupt)*/
 extern int countcount = 0;
-void summ(void)
+void summ(void)                         // IRQ Routine
 {
-    //userButton1.disable_irq();
+    userButton1.disable_irq();
     if(summer.read()>0) {
         summer.write(0.0f);
     } else {
@@ -50,8 +50,8 @@
     }
     countcount++;
     printf("%d interrupt\n\r",countcount);
-    //wait_ms(50);
-    //userButton1.enable_irq();
+    wait_ms(200);
+    userButton1.enable_irq();
 }