Testprogramm für BERTL 2014, der BULME Graz/Gösting. Der BERTL dreht sich für 1s, danach steht er für 1s

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
bulme_rai
Date:
Tue May 20 07:02:24 2014 +0000
Commit message:
Testprogramm f?r BERTL 2014, der BULME Graz/G?sting.; Der BERTL dreht sich f?r 1s danach steht er f?r 1s

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r e93486305e5e main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Tue May 20 07:02:24 2014 +0000
@@ -0,0 +1,27 @@
+/***********************************
+name:   BERTL_2014_MOTOR_1
+author: Wolfgang Raimann
+email:  rai@bulme.at
+description:
+    Der Bertl dreht sich im Kreis für 1s danach steht er für 1s
+***********************************/
+
+#include "mbed.h"
+
+DigitalOut MotorL_EN(p34);
+DigitalOut MotorL_FORWARD(P1_0);
+DigitalOut MotorL_REVERSE(P1_1);
+
+DigitalOut MotorR_EN(p36);
+DigitalOut MotorR_FORWARD(P1_3);
+DigitalOut MotorR_REVERSE(P1_4);
+
+int main() {
+    MotorL_FORWARD = MotorR_REVERSE = 1;
+    while(1) {
+        MotorL_EN = MotorR_EN = 1;
+        wait(1);
+        MotorL_EN = MotorR_EN = 0;
+        wait(1);
+    }
+}
diff -r 000000000000 -r e93486305e5e mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue May 20 07:02:24 2014 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/8a40adfe8776
\ No newline at end of file