Hauptprogramm

Dependencies:   ILI9340_Driver_Lib PM2_Libary Lib_DFPlayerMini

Revision:
19:9ccd591cb637
Parent:
17:621c4212fd4e
Child:
20:f825e91784fe
--- a/Servo/servo_bewegung.cpp	Wed Apr 21 14:43:34 2021 +0000
+++ b/Servo/servo_bewegung.cpp	Thu Apr 22 14:43:14 2021 +0000
@@ -13,15 +13,15 @@
 
 void bewegung(int zeit){ 
 
-Servo Servo1(PA_0);
-Servo1.Enable(1500,20000);
+Servo servo1(PA_0);
+servo1.Enable(1500,20000);
     for(int j=0; j<zeit; j++){
        for (int pos = 1000; pos < 2000; pos += 25) {
-          Servo1.SetPosition(pos);
+          servo1.SetPosition(pos);
           wait_ns(STEP);
       }
       for (int pos = 2000; pos > 1000; pos -= 25) {
-          Servo1.SetPosition(pos);
+          servo1.SetPosition(pos);
           wait_ns(STEP);
       }
       }