prende foco

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Carlos_IMT
Date:
Wed Oct 02 16:35:22 2013 +0000
Commit message:
led2

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 749cb63173c7 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Oct 02 16:35:22 2013 +0000
@@ -0,0 +1,62 @@
+#include "mbed.h"
+DigitalOut myled(PTB19);
+DigitalOut myled2(PTB18);
+DigitalOut myled3(LED1);
+int main() {
+
+        myled2 = 1;
+        myled3 = 1;
+
+    while(1) {
+        myled = 1;
+        wait(0.5);
+        myled = 0;
+        myled2 = 1;
+        myled3 = 1;
+        wait(0.5);
+        myled2 = 1;
+        wait(0.5);
+        myled2 = 0;
+        myled = 1;
+        myled3 = 1;
+        wait(0.5);
+        myled3 = 1;
+        wait(0.5);
+        myled3 = 0;
+        myled2 = 1;
+        myled = 1;
+        wait(0.5);
+        
+        
+        
+        
+        myled = 0;
+        myled2 = 0;
+        myled3 = 1;
+        wait(1);
+        
+        
+        myled2 = 0;
+        myled = 1;
+        myled3 = 0;
+        wait(1);
+        
+       
+        myled3 = 0;
+        myled2 = 1;
+        myled = 0;
+        wait(1);
+        
+        
+        myled = 0;
+        myled2 = 0;
+        myled3 = 0;
+        wait(1);
+        
+        myled = 1;
+        myled2 = 1;
+        myled3 = 1;
+        wait(1);
+    }
+    
+}
\ No newline at end of file
diff -r 000000000000 -r 749cb63173c7 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Oct 02 16:35:22 2013 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f
\ No newline at end of file