Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 #include "mbed.h" 00002 #include "LCD.h" 00003 00004 LCD lcd(PB_9,PB_8); 00005 // PB_9 : I2C broche SDA platine Grove 00006 // PB_8 : I2C broche SCL platine Grove 00007 AnalogIn vsense(ADC_TEMP); // Capteur de température interne 00008 00009 int main() 00010 { 00011 char chaine[17] ; 00012 float T ; 00013 lcd.cursor(3,0); 00014 lcd.print("T externe"); 00015 while(1) { 00016 T = (vsense.read()*3.3f -0.76f)/2.5e-3f + 25 ; 00017 sprintf(chaine, "%.2f C", T); 00018 lcd.cursor(4,1); 00019 lcd.print(chaine); 00020 wait(1); 00021 } 00022 }
Generated on Mon Aug 1 2022 09:58:12 by
