if Button is pressed, turn on LEDs, else turn on other LEDs

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
vhaas
Date:
Thu Apr 23 12:13:41 2015 +0000
Commit message:
BERTL_Button

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
mbed.bld Show annotated file Show diff for this revision Revisions of this file
ur_Bertl.lib Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 68e719836a52 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Thu Apr 23 12:13:41 2015 +0000
@@ -0,0 +1,19 @@
+#include "mbed.h"
+#include "ur_Bertl.h"
+#include "const.h"
+
+
+int main()
+{
+    ur_Bertl karel;
+    
+    karel.TurnLedOff(LED_ALL);
+    
+    while(1)
+    {
+    if( karel.IsButtonPressed(BTN_FLL))
+        karel.NibbleLeds(0x0A);
+    else
+        karel.NibbleLeds(0x00);
+    }
+}
diff -r 000000000000 -r 68e719836a52 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Thu Apr 23 12:13: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 68e719836a52 ur_Bertl.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ur_Bertl.lib	Thu Apr 23 12:13:41 2015 +0000
@@ -0,0 +1,1 @@
+http://developer.mbed.org/teams/BERTL_CHEL_18/code/ur_Bertl/#6b667e2cb800