Match Lab
/
Thermometer
LM61 thermometer progaram.
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #include "LM61.h" 00002 #include "mbed.h" 00003 00004 LM61 lm61(p15); // Connect to Vout pin in LM61. 00005 Serial pc(USBTX, USBRX); 00006 00007 int main() { 00008 float temp; 00009 pc.baud(921600); 00010 00011 while(1) { 00012 temp = lm61.GetTemp(); 00013 pc.printf("Temp=%5.1f\r\n", temp); 00014 wait(1); 00015 } 00016 }
Generated on Mon Jul 25 2022 21:04:50 by 1.7.2