Temperature sensor B-L475E-IOT01A1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
2019-09-04 9:07 AM
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();
Labels:
- Labels:
-
ADC
-
STM32L4 series
This discussion is locked. Please start a new topic to ask your question.
0 REPLIES 0
