Device support for APDS9960 gesture / RGB / proximity sensor. More...
Device support for APDS9960 gesture / RGB / proximity sensor.
#include <apds9960.h>
Classes | |
struct | Config |
Public Types | |
enum | Result { OK = 0 , ERR } |
|
inline |
|
inline |
|
inline |
Converts the raw R/G/B values to color temperature in degrees Kelvin
r | Red value |
g | Green value |
b | Blue value |
Calculate ambient light values
r | Red value |
g | Green value |
b | Blue value |
|
inline |
Clears interrupt
|
inline |
Returns status of color data
Enables the device / Disables the device (putting it in lower power sleep mode)
en | Enable |
Enable color readings
en | Enable |
Enable gesture readings
en | Enable |
Enable proximity readings
en | Enable |
|
inline |
Returns validity status of a gesture
|
inline |
Returns the integration time for the ADC of the APDS9960, in millis
|
inline |
Reads the raw red, green, blue and clear channel values
*r | Red value |
*g | Green value |
*b | Blue value |
*c | Clear channel value |
|
inline |
Reads the raw blue channel value
|
inline |
Reads the raw clear channel value
|
inline |
Reads the raw green channel value
|
inline |
Reads the raw red channel value
|
inline |
Returns the Proximity gain on the APDS9960
Initialize the APDS9960 device
config | Configuration settings |
|
inline |
Reads gesture
< Gesture Up
< Gesture Down
< Gesture Left
< Gesture Right
|
inline |
Read proximity data
|
inline |
Resets gesture counts
Adjusts the color/ALS gain on the APDS9960 (adjusts the sensitivity to light)
aGain | Gain |
|
inline |
Sets the integration time for the ADC of the APDS9960, in millis
iTimeMS | Integration time |
|
inline |
Enables/disables color interrupt
en | Enable / disable |
|
inline |
Sets gesture dimensions
dims | Dimensions |
|
inline |
Sets gesture FIFO Threshold
thresh | Threshold |
|
inline |
Sets gesture sensor gain
gain | Gain |
|
inline |
Sets gesture sensor offset
offset_up | Up offset |
offset_down | Down offset |
offset_left | Left offset |
offset_right | Right offset |
|
inline |
Sets gesture sensor threshold
thresh | Threshold |
|
inline |
Sets interrupt limits
low | Low limit |
high | High limit |
|
inline |
Set LED brightness for proximity/gesture
drive | LED Drive (0,3) -> {100mA, 50mA, 25mA, 12.5mA} |
boost | LED Boost (0,3) -> {100%, 150%, 200%, 300%} |
|
inline |
Adjusts the Proximity gain on the APDS9960
pGain | Gain |
|
inline |
Enables / Disables color interrupt
en | Enable / disable |
|
inline |
Sets number of proxmity pulses
pLen | Pulse Length |
pulses | Number of pulses |
|
inline |