LED

Dependencies:   mbed

Revision:
0:7d61b3dfaa5e
--- /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