36 int8_t
init(int8_t offset_left = 0, int8_t offset_right = 0);
Event registration helpers for the ToF (Time of Flight) subsystem.
Definition TofControl.h:22
int8_t init(int8_t offset_left=0, int8_t offset_right=0)
Initialize ToF sensors.
int8_t setup_continuous(uint16_t interval_ms=50, uint8_t distance=0)
Configure continuous reading for gesture detection and threshold events.
float getVersion()
Get current library version.
int8_t dispose()
Dispose/stop the ToF subsystem and release resources.
bool isActive()
Check whether the ToF subsystem is active (initialized).
std::vector< TofData > getSensorsData()
Read both sensors once and return the latest values.
bool isReading()
Check whether the subsystem is currently performing frequent/continuous readings.