not working combination lcd/ds1820

Dependencies:   mbed LCD_DISCO_F746NG BSP_DISCO_F746NG DS1820

Committer:
kopk
Date:
Tue Apr 14 17:36:42 2020 +0000
Revision:
7:90776a68cc64
Parent:
6:ba8f89d2098b
problem with display upon activating dsprobe.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Sissors 0:e069f9f26768 1
Sissors 0:e069f9f26768 2 #include "mbed.h"
Sissors 0:e069f9f26768 3 #include "DS1820.h"
kopk 7:90776a68cc64 4 #include "stm32746g_discovery_lcd.h"
kopk 7:90776a68cc64 5
kopk 7:90776a68cc64 6
rlanghbv 5:46e4682f9c42 7 DS1820 probeInt(A0);
rlanghbv 5:46e4682f9c42 8 DS1820 probeExt(A1);
rlanghbv 5:46e4682f9c42 9 Timer t;
rlanghbv 5:46e4682f9c42 10 int main() {
kopk 7:90776a68cc64 11 BSP_LCD_Init();
kopk 7:90776a68cc64 12 BSP_LCD_LayerDefaultInit(LTDC_ACTIVE_LAYER, LCD_FB_START_ADDRESS);
kopk 7:90776a68cc64 13 BSP_LCD_SelectLayer(LTDC_ACTIVE_LAYER);
kopk 7:90776a68cc64 14
rlanghbv 5:46e4682f9c42 15 probeInt.unassignedProbe(A0);
rlanghbv 5:46e4682f9c42 16
rlanghbv 5:46e4682f9c42 17 probeExt.unassignedProbe(A1);
rlanghbv 5:46e4682f9c42 18
rlanghbv 5:46e4682f9c42 19 while(1) {
rlanghbv 6:ba8f89d2098b 20 probeInt.convertTemperature(true, DS1820::all_devices); // Start temperature conversion
rlanghbv 5:46e4682f9c42 21 printf("TempInt value=%f\r\n", probeInt.temperature());
Sissors 0:e069f9f26768 22
rlanghbv 6:ba8f89d2098b 23 probeExt.convertTemperature(true, DS1820::all_devices); // Start temperature conversion
rlanghbv 5:46e4682f9c42 24 printf("TempRoom value=%f\r\n", probeExt.temperature());
rlanghbv 5:46e4682f9c42 25 }
rlanghbv 6:ba8f89d2098b 26 }
rlanghbv 6:ba8f89d2098b 27