Hauptprogramm

Dependencies:   ILI9340_Driver_Lib PM2_Libary Lib_DFPlayerMini

Revision:
18:39be9e19768f
Parent:
17:621c4212fd4e
Child:
19:9ccd591cb637
--- a/main.cpp	Wed Apr 21 14:09:31 2021 +0000
+++ b/main.cpp	Wed Apr 21 14:43:34 2021 +0000
@@ -99,43 +99,43 @@
             
             switch(i){
                 //2 Minuten
-                case 24:    i += 5;
+                case 120:    i += 5;
                             //Seesaw Programm
                             ThisThread::sleep_for(5s); //Wartet 5s..
                             break;
                 //5 Minuten
-                case 60:    i += 5;
+                case 300:    i += 5;
                             //Servo Bewegung
                             ThisThread::sleep_for(5s); //Wartet 5s..
                             break;
                 //7 Minuten
-                case 84:    i += 5;
+                case 420:    i += 5;
                             //Audio Signal
                             ThisThread::sleep_for(5s); //Wartet 5s..
                             break;
                 //10 Minuten
-                case 120:   i = 0;
+                case 600:   i = 0;
                             break;
                             ThisThread::sleep_for(5s); //Wartet 5s..
                 default :   i += 5;
                             ThisThread::sleep_for(5s); //Wartet 5s..
                             break;
+                            }
             
             
-        for (int pos = 1000; pos < 2000; pos += 25) {
+      /*  for (int pos = 1000; pos < 2000; pos += 25) {
           Servo1.SetPosition(pos);
           wait_ns(50);
       }
       for (int pos = 2000; pos > 1000; pos -= 25) {
           Servo1.SetPosition(pos);
           wait_ns(50);
-      }
-        bewegung(zeit);
+      }*/
+        //bewegung(zeit);
         
         led = !led;
-        } else {
-            led = 0;        } 
-    }
+        
+    }}
 }
 
 void button_fall()