Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
trivla
Date:
Mon Mar 16 15:28:51 2015 +0000
Commit message:
rl2

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
diff -r 000000000000 -r 622edc672f7f main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Mar 16 15:28:51 2015 +0000
@@ -0,0 +1,28 @@
+#include "mbed.h"
+
+//Flankenerkennung mit interrupt
+BusOut lb(P1_13,P1_12,P1_7,P1_6,P1_4,P1_3,P1_1,P1_0,LED4,LED3,LED2,LED1);
+
+InterruptIn sw4(P1_16);
+void OneRunLightStep();
+
+void Sw4ISR()
+{
+ OneRunLightStep();   
+}
+
+int main() {
+    sw4.rise(Sw4ISR);
+    while(1) 
+    {
+   
+    }
+}
+void OneRunLightStep()
+{
+    if(lb==0)
+        lb=1;
+    else
+        lb = lb << 1;
+    
+}
diff -r 000000000000 -r 622edc672f7f mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Mar 16 15:28:51 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5
\ No newline at end of file