Secuencia de Leds

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
AlejandroZamudio
Date:
Mon Jun 13 18:44:05 2016 +0000
Commit message:
Primer version de codigo

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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Jun 13 18:44:05 2016 +0000
@@ -0,0 +1,22 @@
+#include "mbed.h"
+ 
+PortOut Leds1(PortB,0X0F);
+PortOut Leds2(PortB,0XF0);
+    
+    
+int main()
+{ 
+    
+    while(1) 
+    {
+    Leds1 = 255;
+    wait(0.5);
+    Leds1 = 0;
+    
+    Leds2 = 255;
+    wait(0.5);
+    Leds2 = 0;
+    wait(0.5);
+        
+    }
+ }
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Jun 13 18:44:05 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/6c34061e7c34
\ No newline at end of file