add movement_get_temperature, works across different sensor boards

This commit is contained in:
Joey Castillo
2025-05-17 11:03:51 -04:00
parent 80cbb0fe30
commit 47fbaccc77
7 changed files with 26 additions and 28 deletions

View File

@@ -370,3 +370,8 @@ void movement_set_alarm_enabled(bool value);
// if the board has an accelerometer, these functions will enable or disable tap detection.
bool movement_enable_tap_detection_if_available(void);
bool movement_disable_tap_detection_if_available(void);
// If the board has a temperature sensor, this function will give you the temperature in degrees celsius.
// If the board has multiple temperature sensors, it will use the most accurate one available.
// If the board has no temperature sensors, it will return 0xFFFFFFFF.
float movement_get_temperature(void);