16#include <Adafruit_APDS9960.h>
17#include "../../Utils/Filter/MinFilter.h"
18#include "../../Utils/Time/TimeStep.h"
29 static Adafruit_APDS9960
apds;
A class for managing the Adafruit APDS9960 sensor.
static bool isProx
Flag indicating if proximity detection is enabled.
static uint16_t GetBrightness()
Retrieves the current brightness value.
static float minimum
Minimum detected value.
static MinFilter< 10 > minF
Minimum filter for smoothing proximity values.
static bool isBright
Flag indicating if brightness detection is enabled.
static bool Initialize(uint8_t threshold)
Initializes the APDS9960 sensor.
static bool isBooped()
Checks if the sensor is "booped" (close proximity detected).
static TimeStep timeStep
Time utility for managing timing intervals.
static uint8_t GetValue()
Retrieves the current proximity value.
static uint16_t proximity
Current proximity value.
static Adafruit_APDS9960 apds
Instance of the Adafruit APDS9960 sensor.
static uint16_t threshold
Threshold value for proximity detection.
static void ResetI2CBus()
Resets the I2C bus in case of communication issues.
static bool didBegin
Flag indicating if the sensor has been initialized.
Implements a minimum filter over a sliding window.
Provides a mechanism to trigger actions at a specified frequency.