Hauptprogramm

Dependencies:   ILI9340_Driver_Lib PM2_Libary Lib_DFPlayerMini

Revision:
26:caa4fab7023e
Parent:
25:863e6ef1245f
Child:
27:bbcd157dcd63
--- a/main.cpp	Tue Apr 27 20:04:51 2021 +0000
+++ b/main.cpp	Wed Apr 28 14:58:37 2021 +0000
@@ -85,19 +85,21 @@
                             ThisThread::sleep_for(5s); //Wartet 5s..
                             break;
                 //5 Minuten
-                case 20:
-                case 10: {   seconds += 5;
-                            bewegung();
+                case 300: {   seconds += 5;
+                            bewegung(1);
                             ThisThread::sleep_for(5s); //Wartet 5s..
                             break;
                         }
                 //7 Minuten
                 case 420:    seconds += 5;
+                            bewegung(2);
                             //Audio Signal
                             ThisThread::sleep_for(5s); //Wartet 5s..
                             break;
                 //10 Minuten
-                case 600:   seconds = 0;
+                case 600:   seconds += 5;
+                            bewegung(3);
+                            //Audio Signal
                             ThisThread::sleep_for(5s); //Wartet 5s..
                             break;
                 default :   seconds += 5;