Este programa funciona perfecto
Dependencies: Keypad TextLCD mbed
main.cpp
- Committer:
- DiegoVillaV
- Date:
- 2018-04-04
- Revision:
- 0:bddbdebeea0e
File content as of revision 0:bddbdebeea0e:
#include "mbed.h" #include "TextLCD.h" #include "Keypad.h" Serial rs232 (USBTX, USBRX); AnalogIn AN0 (PTB0); float valor_adc; char Keytale[]= {'1' , '2', '3', 'A', '4' , '5', '3', 'B', '7' , '8', '3', 'C', '*' , '0', '#', 'D'}; TextLCD lcd(PTE20,PTE21,PTE22,PTE23,PTE29,PTE30); //rs en d4 d5 d6 d7 int main() { lcd.printf("MEDIDA ANALOGA"); wait(1); while(true) { valor_adc= AN0; valor_adc= 1000*valor_adc; lcd.printf("%f\n\r",valor_adc);; wait(0.1); } }