los primeros ejers con ticker

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
Franmaver
Date:
Tue Apr 09 14:01:44 2019 +0000
Commit message:
toma el 2

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	Tue Apr 09 14:01:44 2019 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+//Hacer parpadear un led verde cada 0.25s con ticker
+
+DigitalOut myled(LED2);
+Ticker charin;
+void mav();
+
+int main() {
+    
+    charin.attach(&mav, 0.25);
+    
+    while(1) {
+        }
+}
+void mav () {
+    myled = !myled;
+    }
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Tue Apr 09 14:01:44 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file