SChuleEE 1 / Mbed 2 deprecated LED4

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
anti2810
Date:
Mon Mar 16 14:18:33 2015 +0000
Commit message:
hjh

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 80878bdaa4b2 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Mar 16 14:18:33 2015 +0000
@@ -0,0 +1,29 @@
+#include "mbed.h"
+
+BusOut ledbar(P1_13,P1_12,P1_7,P1_6,P1_4,P1_3,P1_1,P1_0,LED4,LED3,LED2,LED1);
+
+InterruptIn sw1(P0_15);
+
+void Lauflicht();
+
+void Sw1ISR()
+{
+    if(sw1.read())
+    Lauflicht();
+}
+
+void main()
+{
+    ledbar=1;
+    sw1.rise(&Sw1ISR);
+    while(1)  {
+    }
+}
+
+void Lauflicht()
+{
+    if(ledbar==2048 )
+    ledbar=1;
+    else
+    ledbar=ledbar<<1;
+}
\ No newline at end of file
diff -r 000000000000 -r 80878bdaa4b2 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Mar 16 14:18:33 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5
\ No newline at end of file