APDS9960


With the APDS9960 sensor, the system can detect hand gestures, distance, light, and colors. It can be configured under I2C in the Setup/Peripheral menu. Power supply is 3.3V

GEST[0] - GEST[9]

GEST[0]=U|
GEST[0]:STD@UP|
GEST[1]=D|
GEST[1]:STD@DOWN|
GEST[2]=L|
GEST[2]:STD@LEFT|
GEST[3]=R|
GEST[3]:STD@RIGHT|
GEST[4]=P|
GEST[4]:STD@PUSH

Assigns commands to different hand gestures.

GEST[5]=LRUD
GEST[5]:STD@ACCEPT!
If the gestures left, right, up, down come in sequence, it executes the command.

GEST:LED(FLASH)
The LED flashes when the hand is within the detection range.

PROX

PROX@
Sends the distance of the object in front of the sensor to STDOUT.

PROX:*NUM[0]@=%PROX
Executes the command when the distance changes.

LIGHT

LIGHT@
Sends the measured light intensity to STDOUT.

LIGHT:*NUM[1]@=%LIGHT
Executes the command when the measured light intensity changes.

LIGHT(RGB)@
Sends the color seen by the sensor in RGB format to STDOUT.

LIGHT(R)@
Sends the red component of the light to STDOUT.
LIGHT(G)@
Sends the green component of the light to STDOUT.
LIGHT(B)@
Sends the blue component of the light to STDOUT.



Examples

The color of the WS2812 LED strip is the detected color.
STR[0]@=%LIGHT(RGB)|STRIP[0]STR[0]