Bertl bewegt sich und schaltet LED´s ein.

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
mpickl
Date:
Thu Apr 16 11:58:34 2015 +0000
Commit message:
Bertl bewegt sich und schaltet LED?s ein.

Changed in this revision

Box_Bertl.cpp Show annotated file Show diff for this revision Revisions of this file
Box_Bertl.h Show annotated file Show diff for this revision Revisions of this file
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
ur_Bertl.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r db41dc05d5f6 Box_Bertl.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Box_Bertl.cpp	Thu Apr 16 11:58:34 2015 +0000
@@ -0,0 +1,26 @@
+// Name: Box_Bertl.cpp
+// Autor: Maximilian Pickl
+
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "Box_Bertl.h"
+#include "const.h"
+
+void Box_Bertl :: Box2()
+{
+    Move();
+    Move();
+}
+
+void Box_Bertl :: TurnRight()
+{
+    TurnLeft();
+    TurnLeft();
+    TurnLeft();    
+}
+
+void Box_Bertl :: LED()
+{
+    TurnLedOff(LED_ALL);
+    TurnLedOn(LED_ALL);
+}
\ No newline at end of file
diff -r 000000000000 -r db41dc05d5f6 Box_Bertl.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Box_Bertl.h	Thu Apr 16 11:58:34 2015 +0000
@@ -0,0 +1,14 @@
+/*
+ Name: Box_Bertl.h
+ Autor: Maximilian Pickl
+*/
+#include "mbed.h"
+#include "ur_Bertl.h"
+
+class Box_Bertl : public ur_Bertl
+{
+public:
+    void Box2();
+    void TurnRight();
+    void LED();    
+};
\ No newline at end of file
diff -r 000000000000 -r db41dc05d5f6 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 16 11:58:34 2015 +0000
@@ -0,0 +1,19 @@
+/*
+ Name: main.cpp
+ Autor: Maximilian Pickl
+*/
+
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "Box_Bertl.h"
+#include "const.h"
+
+int main()
+{
+    Box_Bertl karel;
+    
+    karel.TurnLedOff(0xFF);
+    karel.Box2();
+    karel.TurnRight();
+    karel.LED();
+}
\ No newline at end of file
diff -r 000000000000 -r db41dc05d5f6 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Apr 16 11:58:34 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/487b796308b0
\ No newline at end of file
diff -r 000000000000 -r db41dc05d5f6 ur_Bertl.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ur_Bertl.lib	Thu Apr 16 11:58:34 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#e7f74f072564