7ABELI_ClassSerialEvent

Dependencies:   Bertl mbed

Files at this revision

API Documentation at this revision

Comitter:
bulmecisco
Date:
Mon Nov 16 14:35:47 2015 +0000
Commit message:
First Led test

Changed in this revision

Bertl.lib Show annotated file Show diff for this revision Revisions of this file
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
diff -r 000000000000 -r ff4de98c0835 Bertl.lib
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Bertl.lib	Mon Nov 16 14:35:47 2015 +0000
@@ -0,0 +1,1 @@
+https://developer.mbed.org/users/fpucher/code/Bertl/#308802267a62
diff -r 000000000000 -r ff4de98c0835 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Nov 16 14:35:47 2015 +0000
@@ -0,0 +1,25 @@
+#include "mbed.h"
+#include "const.h"
+#include "Robot.h"
+
+Robot bertl;
+    
+int main()
+{
+    bertl.NibbleLeds(0x0F);
+    wait(1);                    // in Sekunden
+    bertl.NibbleLeds(0x00);
+    
+    while(1)
+    {
+        wait_ms(500);           // in Millisekunden
+        if(bertl.IsButtonPressed(BTN_BL))
+        {
+            bertl.TurnLedOn(LED_BL1);
+        }
+        if(bertl.IsButtonPressed(BTN_BR))
+        {
+            bertl.TurnLedOff(LED_BL1);
+        }
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r ff4de98c0835 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Nov 16 14:35:47 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/9296ab0bfc11
\ No newline at end of file