Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Revision 0:a240d8580f2f, committed 2015-12-21
- Comitter:
- Joci1221
- Date:
- Mon Dec 21 14:38:13 2015 +0000
- Commit message:
- Just for Fun
Changed in this revision
--- /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
--- /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
--- /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