View Source APDS9960.Sensor (apds9960 v0.3.1)
The APDS9960 sensor.
Link to this section Summary
Functions
Enable an engine for a desired feature.
Initializes the I2C bus and sensor.
Returns the status of the device.
Link to this section Types
Specs
engine() :: :color | :als | :proximity | :gesture
Specs
gesture_direction() :: :up | :down | :left | :right
Specs
The APDS9960 sensor option
Specs
t() :: %APDS9960.Sensor{transport: APDS9960.Transport.t()}
Link to this section Functions
Specs
Enable an engine for a desired feature.
Specs
Initializes the I2C bus and sensor.
Specs
reset!(t()) :: :ok
Specs
set_defaults!(t()) :: :ok
Specs
status(t()) :: %{ als_interrupt: byte(), als_valid: byte(), clear_photo_diode_saturation: byte(), gesture_interrupt: byte(), proximity_interrupt: byte(), proximity_or_gesture_saturation: byte(), proximity_valid: byte() }
Returns the status of the device.