NXP fan (in Japan)
/
DKM_TextLCD_LM35
Just a simple sample of TextLCD and LM35 temperature sensor
main.cpp
- Committer:
- nxpfan
- Date:
- 2010-08-12
- Revision:
- 0:b319bd1b3313
File content as of revision 0:b319bd1b3313:
// A simple sample to use TextLCD and LM35 temeperature sensor #include "mbed.h" #include "TextLCD.h" TextLCD lcd(p24, p25, p26, p27, p28, p29); // rs, e, d0-d3 AnalogIn a_in(p20); int main() { lcd.printf("Hello World!\n"); while (1) { lcd.locate( 0, 1 ); lcd.printf( "%f", a_in * 3.3 * 100 ); wait( 1.0 ); } }