1.. zephyr:code-sample:: apds9960
2   :name: APDS9960 RGB, ambient light, and gesture sensor
3   :relevant-api: sensor_interface
4
5   Get ambient light, RGB, and proximity/gesture data from an APDS9960 sensor.
6
7Overview
8********
9
10This sample application demonstrates how to use the APDS9960 sensor to get
11ambient light, RGB, and proximity (or gesture) data.  This sample checks the
12sensor in polling mode (without an interrupt trigger).
13
14Building and Running
15********************
16
17This sample application uses an APDS9960 sensor connected to a board
18(for example as shown in this
19`Sparkfun APDS9960 tutorial`_).
20
21.. zephyr-app-commands::
22   :zephyr-app: samples/sensor/apds9960
23   :board: reel_board
24   :goals: flash
25   :compact:
26
27Sample Output
28=============
29
30.. code-block:: console
31
32        ambient light intensity without trigger is 387
33        proxy without trigger is 115
34        ambient light intensity without trigger is 386
35        proxy without trigger is 112
36        ambient light intensity without trigger is 386
37
38.. _Sparkfun APDS9960 tutorial: https://www.sparkfun.com/products/12787
39