Sensoren Test

Dependencies:   mbed

Revision:
0:23efacfc4c60
Child:
1:6fb229756f2a
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 16 11:43:15 2015 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+#include "const.h"
+#include "ur_Bertl.h"
+DigitalOut myled(LED1);
+
+int main()
+{
+    ur_Bertl karel;
+    
+    while(1)
+    {
+       
+        if( karel.IsButtonPressed(BTN_FL))
+        karel.NibbleLeds(0x0B);
+        else
+        karel.NibbleLeds(0x00);
+        if( karel.IsButtonPressed(BTN_FLL))
+        karel.NibbleLeds(0x0A);
+        else
+        karel.NibbleLeds(0x00);
+        if( karel.IsButtonPressed(BTN_FM))
+        karel.NibbleLeds(0x0C);
+        else
+        karel.NibbleLeds(0x00);
+    }
+}