Skip to main content
DSabo
Associate III
September 4, 2019
Question

Temperature sensor B-L475E-IOT01A1

  • September 4, 2019
  • 0 replies
  • 530 views

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();

This topic has been closed for replies.