Rune Langoy
/
DS1820SerialToLinflux
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
Changes
Revision | Date | Who | Commit message |
---|---|---|---|
6:ba8f89d2098b | 2017-11-23 | rlanghbv | Doc Update |
5:46e4682f9c42 | 2017-11-23 | rlanghbv | First Commit |
4:01060b5e01b4 | 2017-01-13 | Sissors | Updated everything to latest |
3:f483abe4bc57 | 2015-02-28 | Sissors | Removed leftover |
2:d644c874ea0c | 2015-02-26 | Sissors | Updated libs |
1:9100c4c37ad5 | 2015-02-16 | Sissors | Updated DS1820 lib |
0:e069f9f26768 | 2014-02-24 | Sissors | DS1820 HelloWorld |