Junichi Katsu / Mbed 2 deprecated I2cLCD_temp

Dependencies:   mbed I2cLCD

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "I2cLCD.h"
00003 
00004 I2cLCD lcd(p28, p27, p29); //sda scl reset
00005 AnalogIn ain(p15);
00006 
00007 int main() {
00008     float tmp;
00009     
00010     while(1) {
00011         lcd.locate(0,0);
00012         tmp = (ain - 0.1818)/0.00303;
00013 
00014         lcd.printf("temple:%2.2f",tmp);
00015         
00016         wait(0.5);
00017 
00018     }
00019 }