This is BETA-Version2 and is only for testing

Dependencies:   mbed

Fork of B16-Fahr-Test-mit-Leds_BETA by Puya Ghasemi

Files at this revision

API Documentation at this revision

Comitter:
Ghasemi
Date:
Wed May 11 20:22:06 2016 +0000
Parent:
4:6e64ddd3dbab
Commit message:
new;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 6e64ddd3dbab -r a946e739eacc main.cpp
--- a/main.cpp	Wed May 11 19:57:53 2016 +0000
+++ b/main.cpp	Wed May 11 20:22:06 2016 +0000
@@ -29,24 +29,31 @@
 DigitalOut LedD2 (P1_11);
 DigitalOut LedD4 (P1_12);
 DigitalOut LedD5 (P1_13);
-DigitalOut LedD13 (P1_21);
-DigitalOut LedD12 (P1_20);  
+DigitalOut LedD10 (P1_18);
+DigitalOut LedD11 (P2_16);
+DigitalOut LedD12 (P1_20);
+DigitalOut LedD13 (P1_21);  
 // *************  Hauptprogramm ************
 int main() {                     // Start Hauptprogramm
     Von=1;                       // Motor Spannung EIN
     MotorR_EN=MotorL_EN=1;       // Beide Motoren ENABLE
-    while(1) {                   // Anfang der Schleife (ohne Abbruch)   
+    while(1) {                   // Anfang der Schleife (ohne Abbruch)  
+        LedD10 = 1;
+        LedD11 = 1;
+        LedD12 = 1;
+        LedD13 = 1;
+        LedD2 = 0;
         MotorR_FORWARD = 1;      // RECHTER Motor vorwärts EIN 
         MotorL_FORWARD = 1;      // LINKER Motoren vorwärts EIN
         wait (2.0);             // warte 1 Sekunde  
         MotorR_FORWARD = 0;      // RECHTER Motor STOP
         MotorL_FORWARD = 0;      // LINKER Motoren STOP  
         LedD5= 1;                // LED D5(Gelb rechts) ein 2-mal an und aus
-        wait (0.25)
-        LedD5= 0;                // ,,--'' aus 
-        wait (0.25)
+        wait (0.25);
+        LedD5= 0;               // ,,--'' aus 
+        wait (0.25);
         LedD5= 1;   
-        wait (0.25)            
+        wait (0.25);            
         LedD5= 0;
         MotorL_FORWARD = 1; 
         wait (0.5);              // warte 0.5 Sekunden