B15 Motor Test

Dependencies:   mbed

Fork of _B15_T4_Motor by BULME_BERTL15

Revision:
2:416e90645a22
Parent:
1:0f7c167a4f97
--- a/main.cpp	Sun May 31 16:35:31 2015 +0000
+++ b/main.cpp	Fri Jun 19 06:52:24 2015 +0000
@@ -28,9 +28,11 @@
     Von=1;                       // Motor Spannung EIN
     MotorR_EN=MotorL_EN=1;       // Beide Motoren ENABLE
     while(1) {                   // Anfang der Schleife (ohne Abbruch)   
-        MotorR_FORWARD = MotorL_FORWARD = 1;  // Beide Motoren vorwärts EIN
+        MotorR_FORWARD = 1;      // RECHTER Motor vorwärts EIN 
+        MotorL_FORWARD = 1;      // LINKER Motoren vorwärts EIN
         wait (1.0);              // warte 1 Sekunde  
-        MotorR_FORWARD = MotorL_FORWARD = 0;  // Motoren AUS  
+        MotorR_FORWARD = 0;      // RECHTER Motor STOP
+        MotorL_FORWARD = 0;      // LINKER Motoren STOP  
         wait (1.0);              // warte 1 Sekunde 
     }                            // Springe zum Anfang der Schleife 
 }                                // Ende des Hauptprogrammes