Librería Diego; Programacion para Sistemas Embebidos

Dependents:   ProyectoLeds2

Files at this revision

API Documentation at this revision

Comitter:
DiegoRivera
Date:
Wed Feb 17 02:23:25 2016 +0000
Parent:
2:9c1faaf8ccb3
Commit message:
Errores corregidos

Changed in this revision

Diego.h Show annotated file Show diff for this revision Revisions of this file
--- a/Diego.h	Wed Feb 17 02:21:05 2016 +0000
+++ b/Diego.h	Wed Feb 17 02:23:25 2016 +0000
@@ -3,10 +3,6 @@
 
 #include "mbed.h"
 
-DigitalOut led1(LED1);
-DigitalOut led2(LED2);
-DigitalOut led3(LED3);
-
 void  Diego_Mensaje()
 {
     pc.printf("Diego Rivera \n");
@@ -14,6 +10,10 @@
     
 void Diego_led()
 {
+    DigitalOut led1(LED1);
+    DigitalOut led2(LED2);
+    DigitalOut led3(LED3);
+
     led1=0;
     led2=0;
     led3=0;