Markus Watko / Mbed 2 deprecated While_Tasks

Dependencies:   mbed

Revision:
0:fe8e35c31d0e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri Apr 24 08:03:35 2015 +0000
@@ -0,0 +1,21 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+
+int main()
+{
+   ur_Bertl karel;
+   
+   karel.TurnLedOn(0x00);
+   
+    while(1)
+    {
+       while(karel.IsButtonPressed(0x80))
+       {
+          karel.TurnLedOn(0x01);   
+          karel.TurnLedOn(0x20);
+       }
+        
+        karel.TurnLedOff(0x01);
+        karel.TurnLedOff(0x20);
+    }
+}
\ No newline at end of file