Programa para utilizar la comunicación serial, la conversión analógico-digital y la librería para TextLCD para desplegar anuncios en un display de LCD de 2x16 en el sistema de desarrollo FRDM KL25Z

Dependencies:   mbed TextLCD

Fork of FRDM_KL25_ADC_LCD by ISISA-Zacatenco

Files at this revision

API Documentation at this revision

Comitter:
Javierdf
Date:
Sun Sep 22 03:19:26 2019 +0000
Parent:
6:2cbcc7411fd7
Commit message:
kl46 prueba

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/main.cpp	Thu Apr 27 18:56:50 2017 +0000
+++ b/main.cpp	Sun Sep 22 03:19:26 2019 +0000
@@ -26,10 +26,10 @@
     while(true){//Inicio loop de trabajo
     lcd.cls();                                                                  //Limpieza de la pantalla LCD
     
-    conv=3.3*an_pin.read();                                                     //Lectura del Pin Analogico y conversión al rango de 3.3Volts
+    conv=an_pin.read();                                                     //Lectura del Pin Analogico y conversión al rango de 3.3Volts
                                                                      
-    lcd.printf("Voltaje: %1.2f \nVolts",conv);                                  //Impresión de información por medio del LCD
-    pc.printf("Voltaje: %f Volts\n",conv);                                   //Envio de información por el puesto serial
+    lcd.printf("Voltaje: %1.2f \n",conv);                                  //Impresión de información por medio del LCD
+    pc.printf("Voltaje: %1.2f aceleracion run run\n",conv);                                   //Envio de información por el puesto serial
     wait(0.2);                                                                  //Retardo de 0.2 segundos        
         }