View Source APDS9960.Sensor (apds9960 v0.4.0)

The APDS9960 sensor.

Link to this section Summary

Types

The APDS9960 sensor option

t()

Functions

Enable an engine for a desired feature.

Initializes the I2C bus and sensor.

Link to this section Types

Specs

engine() :: :color | :als | :proximity | :gesture

Specs

gesture_direction() :: :up | :down | :left | :right

Specs

option() :: [bus_name: binary(), reset: boolean(), set_defaults: boolean()]

The APDS9960 sensor option

Specs

t() :: %APDS9960.Sensor{transport: APDS9960.Transport.t()}

Link to this section Functions

Specs

enable(t(), engine()) :: :ok

Enable an engine for a desired feature.

Specs

init([option()]) :: t()

Initializes the I2C bus and sensor.

Specs

reset!(t()) :: :ok

Specs

set_defaults!(t()) :: :ok