Just for Fun

Dependencies:   Bertl mbed

Files at this revision

API Documentation at this revision

Comitter:
Joci1221
Date:
Mon Dec 21 14:38:13 2015 +0000
Commit message:
Just for Fun

Changed in this revision

Bertl.lib 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
diff -r 000000000000 -r a240d8580f2f Bertl.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Bertl.lib	Mon Dec 21 14:38:13 2015 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/fpucher/code/Bertl/#308802267a62
diff -r 000000000000 -r a240d8580f2f main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Dec 21 14:38:13 2015 +0000
@@ -0,0 +1,75 @@
+#include "mbed.h"
+#include "const.h"
+#include "Robot.h"
+
+DigitalOut myled(LED1);
+Robot bertl;
+
+void Forwaerts()
+{
+    bertl.Move();
+}    
+
+void Links_Drehung()
+{
+    bertl.TurnLeft();
+}
+
+void Knabber_LEDs(int a)
+{
+    bertl.NibbleLeds(a);
+}
+
+void LED_AN(int16_t led)
+{
+    bertl.TurnLedOn(led);
+}
+
+void LED_AUS(int16_t led)
+{
+    bertl.TurnLedOff(led);
+} 
+
+void Bunte_LEDs(bool rot, bool gruen, bool blau)
+{
+    bertl.RGBLed(rot,gruen,blau);
+}
+
+void LEDs_Blau_AN()
+{
+    bertl.BlueLedsON();
+}
+
+void LEDs_Blau_Aus()
+{
+    bertl.BlueLedsOFF();
+}
+
+void Warten_Auf_Knopfdruck()
+{
+    bertl.WaitUntilButtonPressed();
+}
+
+void Vorne_Frei()
+{
+    bertl.FrontIsClear();
+}
+
+void Neben_Beeper ()
+{
+    bertl.NextToABeeper();
+}
+
+void Ist_Knopf_Gedrueckt (const int btn)
+{
+    bertl.IsButtonPressed(btn);
+}
+
+void Knopfdruck_zurueckgeben()
+{
+    bertl.ReturnButtonPressed();
+}
+
+// JUST FOR FUN
+
+int main(){}       
\ No newline at end of file
diff -r 000000000000 -r a240d8580f2f mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Dec 21 14:38:13 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4336505e4b1c
\ No newline at end of file