Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of _B15_T4_Motor by
Revision 2:416e90645a22, committed 2015-06-19
- Comitter:
- Enenkel
- Date:
- Fri Jun 19 06:52:24 2015 +0000
- Parent:
- 1:0f7c167a4f97
- Commit message:
- B15 T4 MOTOR TEST
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 0f7c167a4f97 -r 416e90645a22 main.cpp
--- 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
