LED - Blinken lassen

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
kevinfellegi
Date:
Fri May 08 08:46:03 2015 +0000
Commit message:
LED - Blinken lassen

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 55b468510ebc main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Fri May 08 08:46:03 2015 +0000
@@ -0,0 +1,26 @@
+#include "mbed.h"
+
+DigitalOut myled_1(LED1);
+DigitalOut myled_2(LED2);
+DigitalOut myled_3(LED3);
+DigitalOut myled_4(LED4);
+
+
+int main() 
+{
+    while(1) 
+     {
+        myled_1 = 1;
+        myled_2 = 1;
+        wait(0.5);
+        myled_1 = 0;
+        myled_2 = 0;
+        
+        myled_3 = 1;
+        myled_4 = 1;
+        wait(0.5);
+        myled_3 = 0;
+        myled_4 = 0;
+        
+    }
+}
diff -r 000000000000 -r 55b468510ebc mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri May 08 08:46:03 2015 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/8ab26030e058
\ No newline at end of file