PES 4 - Smart Medication Dispenser / PES4_ProgrammeforDesignReview2

Dependencies:   SDFileSystem mbed

Fork of PES4_Programme by PES 4 - Smart Medication Dispenser

Revision:
84:14ed3d02e782
Parent:
83:d327a532c0ad
Child:
85:04fe3dff23f4
--- a/source/main.cpp	Mon Apr 09 12:02:29 2018 +0000
+++ b/source/main.cpp	Mon Apr 09 12:24:19 2018 +0000
@@ -144,13 +144,26 @@
                 /* Test Zone */
                 
                 /* DutyCycle */
+            case 42:
+                printf("case 42:\r\n");
+                initInterrupt();
+                printf("initInterrupt\r\n");
+                enableContainer(1);
+                while(1){
+                    printf("%i\r\n", getDutyCycle());
+                    printf("--- END ---\r\n");
+                    wait(0.2);
+                }
+                break;
+                
+                /* Drehung 90° */
             case 43:
                 printf("case 43:\r\n");
                 initInterrupt();
                 printf("initInterrupt\r\n");
                 enableContainer(1);
                 while(1){
-                    printf("%i\r\n", getDutyCycle());
+                    nextPosition(1);
                     printf("--- END ---\r\n");
                     wait(5);
                 }