prueba teclado matricial 4x3

Dependencies:   TextLCD mbed

Fork of LCD_test by proyectotecnicas

main.cpp

Committer:
josedaparte
Date:
2015-11-26
Revision:
0:a9f60dff8cb6
Child:
1:85232e54cfcf

File content as of revision 0:a9f60dff8cb6:

#include "mbed.h"
#include "TextLCD.h"
#include "AnalogIn.h"

AnalogIn leer(PTC1);

TextLCD lcd(PTE20, PTE21, PTE22, PTE23, PTB20, PTE30, TextLCD::LCD16x2);

int main() {

float lectura;
float voltaje;

    while(1){
    
    lectura = leer.read();
    voltaje = lectura*3.3;
    lcd.cls();
    lcd.printf("%f",lectura);
    lcd.locate(1,1);
    lcd.printf("%f", voltaje);
    wait(2);
    
    
    }
}