Dual DS18B20 Serial Temp logger
Fork of DS1820_HelloWorld by
Import program
00001 00002 #include "mbed.h" 00003 #include "DS1820.h" 00004 00005 DS1820 probeInt(A0); 00006 DS1820 probeExt(A1); 00007 Timer t; 00008 int main() { 00009 probeInt.unassignedProbe(A0); 00010 00011 probeExt.unassignedProbe(A1); 00012 00013 while(1) { 00014 probeInt.convertTemperature(true, DS1820::all_devices); // Start temperature conversion 00015 printf("TempInt value=%f\r\n", probeInt.temperature()); 00016 00017 probeExt.convertTemperature(true, DS1820::all_devices); // Start temperature conversion 00018 printf("TempRoom value=%f\r\n", probeExt.temperature()); 00019 } 00020 } 00021
History
Doc Update
2017-11-23, by rlanghbv [Thu, 23 Nov 2017 08:27:26 +0000] rev 6
Doc Update
First Commit
2017-11-23, by rlanghbv [Thu, 23 Nov 2017 08:19:49 +0000] rev 5
First Commit
Updated everything to latest
2017-01-13, by Sissors [Fri, 13 Jan 2017 18:30:37 +0000] rev 4
Updated everything to latest
Removed leftover
2015-02-28, by Sissors [Sat, 28 Feb 2015 15:07:09 +0000] rev 3
Removed leftover
Updated libs
2015-02-26, by Sissors [Thu, 26 Feb 2015 22:21:13 +0000] rev 2
Updated libs
Updated DS1820 lib
2015-02-16, by Sissors [Mon, 16 Feb 2015 16:54:07 +0000] rev 1
Updated DS1820 lib
DS1820 HelloWorld
2014-02-24, by Sissors [Mon, 24 Feb 2014 21:24:38 +0000] rev 0
DS1820 HelloWorld