Hisyam Sulaiman
/
ADC
cg
main.cpp
- Committer:
- HisyamSulaiman
- Date:
- 2018-05-24
- Revision:
- 1:877582fb6b65
- Parent:
- 0:a060af406e72
File content as of revision 1:877582fb6b65:
#include "mbed.h" #include "TextLCD.h" TextLCD lcd(D8, D9, D4, D5, D6, D7); Serial pc(USBTX, USBRX); AnalogIn Ain(PC_3); float ADCdata; int main() { lcd.locate (1,0); lcd.printf("Temp Measure"); lcd.locate (0,1); lcd.printf("Cel"); lcd.locate (8,1); lcd.printf("Fah"); /*while(1) { ADCdata=Ain; ADCdata=ADCdata; lcd.locate (4,1); lcd.printf("%f",ADCdata); pc.printf("%f\n\r",ADCdata); lcd.locate (11,1); lcd.printf("%f",ADCdata); pc.printf("%f\n\r",ADCdata); wait(0.5);*/ }