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:7d61b3dfaa5e, committed 2015-04-23
- Comitter:
- fritzhausmann
- Date:
- Thu Apr 23 12:06:41 2015 +0000
- Commit message:
- LED
Changed in this revision
diff -r 000000000000 -r 7d61b3dfaa5e main.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Thu Apr 23 12:06:41 2015 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "const.h"
+
+class Led_Bertl : public ur_Bertl // Klasse deklarieren
+{
+public:
+ void Turn2LedOn(); // Methodenprototyping
+};
+
+void Led_Bertl :: Turn2LedOn() // Methodendefinition
+{
+ TurnLedOff(LED_ALL);
+ TurnLedOn(LED_BL1 | LED_BR1);
+}
+
+int main()
+{
+
+ Led_Bertl karel; // Objekt erzeugen (installieren)
+
+ karel.Turn2LedOn(); // Objektmethode aufrufen
+ karel.Move();
+ karel.ShutOff();
+}
\ No newline at end of file
diff -r 000000000000 -r 7d61b3dfaa5e mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Apr 23 12:06:41 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 7d61b3dfaa5e ur_Bertl.lib --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ur_Bertl.lib Thu Apr 23 12:06:41 2015 +0000 @@ -0,0 +1,1 @@ +http://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#1cd559ff516b