Common sensor interface to unify various sensors. Intentionally modeled after sensors.h in the Android API: https://github.com/android/platform_hardware_libhardware/blob/master/include/hardware/sensors.h.
More...
#include <Adafruit_Sensor.h>
Common sensor interface to unify various sensors. Intentionally modeled after sensors.h in the Android API: https://github.com/android/platform_hardware_libhardware/blob/master/include/hardware/sensors.h.
◆ enableAutoRange()
virtual void Adafruit_Sensor::enableAutoRange |
( |
bool |
enabled | ) |
|
|
inlinevirtual |
Whether we should automatically change the range (if possible) for higher precision.
- Parameters
-
enabled | True if we will try to autorange |
◆ getEvent()
Get the latest sensor event.
- Returns
- True if able to fetch an event
The documentation for this class was generated from the following files: