cancel
Showing results for 
Search instead for 
Did you mean: 

Temperature sensor B-L475E-IOT01A1

DSabo
Associate III

I can read the on board temperature sensor when I use the code below when it is run in the file platform_STM32Cube_IoT01L475VG.c... but if I move the same code to a function from another file it always returns 0... can't figure out why... any ideas?

float    TEMPERATURE_Value;
float    HUMIDITY_Value;
float    PRESSURE_Value;
 
 
TEMPERATURE_Value = BSP_TSENSOR_ReadTemp();
HUMIDITY_Value    = BSP_HSENSOR_ReadHumidity();
PRESSURE_Value    = BSP_PSENSOR_ReadPressure();

0 REPLIES 0