Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
rmaya
Date:
Fri May 04 12:51:29 2018 +0000
Commit message:
prueba

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	Fri May 04 12:51:29 2018 +0000
@@ -0,0 +1,15 @@
+#include "mbed.h"
+
+DigitalOut ledusuario(LED2);
+DigitalIn boton(USER_BUTTON);
+int main() {
+    
+    while(1) {
+            if (boton==1) {
+                ledusuario = 1; // LED is ON
+                wait(2);} // 200 ms
+             else{
+                 ledusuario = 0; // LED is OFF
+                 wait(10);} // 1 sec
+                 }
+              }
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri May 04 12:51:29 2018 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/994bdf8177cb
\ No newline at end of file