Übung

Dependencies:   Bertl mbed

Files at this revision

API Documentation at this revision

Comitter:
Putzi
Date:
Mon Dec 21 14:40:23 2015 +0000
Commit message:
?bung

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 0061676da890 Bertl.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Bertl.lib	Mon Dec 21 14:40:23 2015 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/Putzi/code/Bertl/#9480a699f9b7
diff -r 000000000000 -r 0061676da890 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Dec 21 14:40:23 2015 +0000
@@ -0,0 +1,81 @@
+#include "mbed.h"
+#include "const.h"
+#include "Robot.h"
+
+Robot bertl;
+
+void AufKnopfdruckWarten()
+{
+    bertl.WaitUntilButtonPressed();    
+} 
+void NichtsVorDemBertl()
+{
+    bertl.FrontIsClear();    
+} 
+void NebenDemBeeper()
+{
+    bertl.NextToABeeper();    
+} 
+void KnopfGedrueckt(const int btn)
+{
+    bertl.IsButtonPressed(btn);    
+} 
+int WelcherKnopf()
+{
+    bertl.ReturnButtonPressed();    
+} 
+void NachVor()
+{
+    bertl.Move();    
+}
+void Links()
+{
+    bertl.TurnLeft();    
+}
+void OrangeLeds(int x)
+{
+    bertl.NibbleLeds(x);
+}
+void LedAn(int16_t a)
+{
+    bertl.TurnLedOn(a);    
+}
+void LedAus(int16_t b)
+{
+    bertl.TurnLedOff(b);
+}
+void Bunt(bool rot, bool gruen, bool blau)
+{
+    bertl.RGBLed(rot, gruen, blau);    
+}
+void BlaueLedsAn()
+{
+    bertl.BlueLedsON();    
+}
+void BlaueLedsAus()
+{
+    bertl.BlueLedsOFF();    
+}
+
+//---------------------------------------------------------------------------------------------------------------------------------------------//
+
+int main()
+{
+    NachVor();
+    Links();
+    NachVor();
+    Links();
+    NachVor();
+    Links();
+    NachVor();
+    Links();
+    BlaueLedsAn();
+    NachVor();
+    BlaueLedsAus();
+    Links();
+    Links();
+    Links();
+    Links();
+    
+
+}
\ No newline at end of file
diff -r 000000000000 -r 0061676da890 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Dec 21 14:40:23 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/165afa46840b
\ No newline at end of file