los primeros ejers con ticker

Dependencies:   mbed

Revision:
0:e64057ed9080
--- /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