Aldo Omar Marez Aquino / Mbed 2 deprecated P8E1

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
aldomarez
Date:
Wed Oct 17 20:26:44 2018 +0000
Commit message:
:D

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 69f37b9d5c07 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Wed Oct 17 20:26:44 2018 +0000
@@ -0,0 +1,24 @@
+#include "mbed.h"  
+Ticker  flipper;
+DigitalOut  encendido(D4);  
+DigitalOut  apagado(D5);  
+DigitalOut  parpadeo(D6); 
+DigitalOut  motor(LED2);  
+void  flip()  {  
+motor  =  !motor;
+encendido = !encendido; 
+apagado=!apagado; 
+} 
+int  main()  {
+apagado=1;
+encendido = 0;
+motor = 1;
+parpadeo=1;
+
+flipper.attach(&flip, 2.0);
+
+while(1)  {
+    parpadeo  =  !parpadeo;
+    wait(0.2);
+    }
+}
\ No newline at end of file
diff -r 000000000000 -r 69f37b9d5c07 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Wed Oct 17 20:26:44 2018 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/e95d10626187
\ No newline at end of file