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.
Dependencies: mbed C12832 LM75B
Fork of LM75B_test by
main.cpp
00001 #include "mbed.h" 00002 #include "LM75B.h" 00003 #include "C12832.h" 00004 00005 C12832 lcd(p5, p7, p6, p8, p11); 00006 00007 LM75B sensor(p28,p27); 00008 Serial pc(USBTX,USBRX); 00009 00010 int main () 00011 { 00012 00013 //Try to open the LM75B 00014 if (sensor.open()) { 00015 printf("Device detected!\n"); 00016 00017 while (1) { 00018 lcd.cls(); 00019 lcd.locate(0,3); 00020 lcd.printf("Temp = %.3f\n", (float)sensor); 00021 wait(1.0); 00022 } 00023 00024 } else { 00025 error("Device not detected!\n"); 00026 } 00027 00028 }
Generated on Tue Jul 12 2022 12:11:00 by
