TestUebung

Dependencies:   mbed ur_Bertl

Files at this revision

API Documentation at this revision

Comitter:
zwiebelturm100
Date:
Fri May 08 07:59:20 2015 +0000
Commit message:
TestUebung

Changed in this revision

LED_Bertl.h Show annotated file Show diff for this revision Revisions of this file
TestUebung.cpp Show annotated file Show diff for this revision Revisions of this file
TestUebung.h Show annotated file Show diff for this revision Revisions of this file
de_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 702a8075c0c6 LED_Bertl.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/LED_Bertl.h	Fri May 08 07:59:20 2015 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "de_Bertl.h"
+
+#ifndef DE_BERTL_H
+#define LED_BERTL_H
+
+class LED_Bertl : public de_Bertl
+{
+public:
+    void Turn2LedOn();
+    void Turn2LedOff();
+    
+};
+#endif
\ No newline at end of file
diff -r 000000000000 -r 702a8075c0c6 TestUebung.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TestUebung.cpp	Fri May 08 07:59:20 2015 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "de_Bertl.h"
+#include "LED_Bertl.h"
+
+
+void LED_Bertl :: Turn2LedOn()
+{
+    TurnLedOn(LED_FL1 | LED_FR1); 
+    
+}
+
+void LED_Bertl :: Turn2LedOff()
+{
+    TurnLedOff(LED_FL1 | LED_FR1);
+}
+
+void de_Bertl :: Bewege()
+{
+   Move();
+}
\ No newline at end of file
diff -r 000000000000 -r 702a8075c0c6 TestUebung.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/TestUebung.h	Fri May 08 07:59:20 2015 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "de_Bertl.h"
+
+#ifndef DE_BERTL_H
+#define LED_BERTL_H
+
+class LED_Bertl :: public de_Bertl
+{
+public:
+    void Turn2LedOn();
+    void Turn2LedOff();
+    
+};
+#endif
\ No newline at end of file
diff -r 000000000000 -r 702a8075c0c6 de_Bertl.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/de_Bertl.h	Fri May 08 07:59:20 2015 +0000
@@ -0,0 +1,14 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "const.h"
+
+#ifndef DE_BERTL
+#define DE_BERTL
+
+class de_Bertl : public ur_Bertl
+{
+public:
+    void Bewege();          // nur Deklaration= Ptototyping
+    void Turn2LedsOn();
+};
+#endif
\ No newline at end of file
diff -r 000000000000 -r 702a8075c0c6 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri May 08 07:59:20 2015 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "de_Bertl.h"
+#include "LED_Bertl.h"
+#include "const.h"
+ 
+
+
+   
+int main()
+{
+    LED_Bertl karel;
+    karel.TurnLedOff(0xFF);
+    while(karel.WaitUntilButtonPressed()){}
+    karel.Turn2LedOn();
+    karel.Bewege();
+    karel.Move();
+    karel.Turn2LedOff();
+    karel.ShutOff();   
+}
\ No newline at end of file
diff -r 000000000000 -r 702a8075c0c6 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri May 08 07:59:20 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/7e07b6fb45cf
\ No newline at end of file
diff -r 000000000000 -r 702a8075c0c6 ur_Bertl.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ur_Bertl.lib	Fri May 08 07:59:20 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#fafbac0ba96d