not working combination lcd/ds1820

Dependencies:   mbed LCD_DISCO_F746NG BSP_DISCO_F746NG DS1820

main.cpp

Committer:
rlanghbv
Date:
2017-11-23
Revision:
6:ba8f89d2098b
Parent:
5:46e4682f9c42
Child:
7:90776a68cc64

File content as of revision 6:ba8f89d2098b:


#include "mbed.h"
#include "DS1820.h"
 
DS1820 probeInt(A0);
DS1820 probeExt(A1);
Timer t;
int main() {
     probeInt.unassignedProbe(A0);
     
     probeExt.unassignedProbe(A1);
     
     while(1) {
         probeInt.convertTemperature(true, DS1820::all_devices);  // Start temperature conversion
         printf("TempInt value=%f\r\n", probeInt.temperature());     

         probeExt.convertTemperature(true, DS1820::all_devices);  // Start temperature conversion
         printf("TempRoom value=%f\r\n", probeExt.temperature());
     }
}