encender led

Fork of ortega by jose ortega cervantes

Files at this revision

API Documentation at this revision

Comitter:
joseortega
Date:
Tue Feb 16 15:09:52 2016 +0000
Commit message:
ortegacer

Changed in this revision

ortegacer.h Show annotated file Show diff for this revision Revisions of this file
diff -r 000000000000 -r 4ca08992df55 ortegacer.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ortegacer.h	Tue Feb 16 15:09:52 2016 +0000
@@ -0,0 +1,21 @@
+#ifndef ortegacer
+#define ortegacer
+
+
+void ortegacer_mensaje(){
+      pc.printf("hola");   
+}
+DigitalOut led2(LED1);
+#include "mbed.h"
+void ortegacer_led2(){
+    
+    while(1) {
+        myled = 1;
+        wait(0.2);
+        myled = 0;
+        wait(0.2);
+    }
+}
+    
+
+#endif
\ No newline at end of file