programa para probar el uso de leds

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
javierjsp
Date:
Wed Mar 15 20:04:49 2017 +0000
Child:
1:4fadbaba93fc
Commit message:
progama para probar como se controlan los leds en un nucleo 144

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	Wed Mar 15 20:04:49 2017 +0000
@@ -0,0 +1,23 @@
+#include "mbed.h"
+ 
+DigitalOut led1(LED1);
+DigitalOut led2(LED2);
+DigitalOut led3(LED3);
+ 
+int main() {
+    while(1) {
+        led1 = 1;
+        wait(0.5);
+        led1 = 0;
+        wait(0.2);
+        led2 = 1;
+        wait(0.5);
+        led2 = 0;
+        wait(0.2);
+        led3 = 1;
+        wait(0.5);
+        led3 = 0;
+        wait(0.2);
+    }
+}
+ 
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Mar 15 20:04:49 2017 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/093f2bd7b9eb
\ No newline at end of file