PES 4 - Smart Medication Dispenser / PES4_ProgrammeforDesignReview2

Dependencies:   SDFileSystem mbed

Fork of PES4_Programme by PES 4 - Smart Medication Dispenser

Revision:
83:d327a532c0ad
Parent:
82:2fc026430ff2
Child:
84:14ed3d02e782
--- a/source/main.cpp	Mon Apr 09 05:49:27 2018 +0000
+++ b/source/main.cpp	Mon Apr 09 12:02:29 2018 +0000
@@ -2,7 +2,7 @@
 #define     FADESPEED   5
 #define     DEMOTIME    5
 
-int state = 44;
+int state = 43;
 
 int oldState;
 
@@ -142,6 +142,19 @@
 
                 /**************************************************************/
                 /* Test Zone */
+                
+                /* DutyCycle */
+            case 43:
+                printf("case 43:\r\n");
+                initInterrupt();
+                printf("initInterrupt\r\n");
+                enableContainer(1);
+                while(1){
+                    printf("%i\r\n", getDutyCycle());
+                    printf("--- END ---\r\n");
+                    wait(5);
+                }
+                break;
 
                 /* init PWM board */
             case 44: