6 years, 7 months ago.

Libreria para LCD en Nucleo F746ZG

Buenas tardes, he estado buscando la librería para la LCD en un núcleo F746ZG pero aun no la encuentro, necesito realizar un código con un ADC y mostrar la conversión en una LCD 16X2.

Agradezco su colaboración

1 Answer

6 years, 7 months ago.

I do not speak Spanish but if I understand it correctly…

https://os.mbed.com/users/wim/notebook/textlcd-enhanced/

try...

#include "mbed.h"
TextLCD lcd(/*RS, E, D4-D7*/);
AnalogIn adc(/*AnalogInputPin*/);

float value;

int main() {
    while(1) {
           value = adc.read();      // Converts and read the analog input value (value from 0.0 to 1.0)
           value = value * 3300;    // Change the value to be in the 0 to 3300 range
           lcd.cls();               // Clean and relocate the display.
           lcd.printf("ADC value %.0f mV\n", value);
           wait(1);
    }
}