NXP fan (in Japan)
/
DKM_TextLCD_LM35
Just a simple sample of TextLCD and LM35 temperature sensor
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 // A simple sample to use TextLCD and LM35 temeperature sensor 00002 00003 #include "mbed.h" 00004 #include "TextLCD.h" 00005 00006 TextLCD lcd(p24, p25, p26, p27, p28, p29); // rs, e, d0-d3 00007 AnalogIn a_in(p20); 00008 00009 int main() { 00010 lcd.printf("Hello World!\n"); 00011 00012 while (1) { 00013 lcd.locate( 0, 1 ); 00014 lcd.printf( "%f", a_in * 3.3 * 100 ); 00015 wait( 1.0 ); 00016 } 00017 }
Generated on Sat Jul 16 2022 17:35:30 by 1.7.2