• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

boards/03-Apr-2024-1412

src/03-Apr-2024-125100

CMakeLists.txtD03-Apr-2024225 96

README.rstD03-Apr-20242.2 KiB7158

prj.confD03-Apr-2024153 76

sample.yamlD03-Apr-2024206 109

README.rst

1.. _isl29035:
2
3ISL29035: Digital Light Sensor
4##############################
5
6Overview
7********
8
9If trigger is not enabled the sample displays measured light intensity
10every 2 seconds.
11
12If trigger is enabled the sample displays light intensity from the
13ISL29035 sensor every 10 seconds if it is within +/- 50 lux of the last
14read sample.  If the sensor detects an intensity outside that range the
15application wakes, displays the intensity, resets the intensity range
16window to center on the new value, then continues as before.
17
18Requirements
19************
20
21This sample uses an external breakout for the sensor.  A devicetree
22overlay must be provided to connect the sensor to the I2C bus and
23identify the interrupt signal.
24
25Building and Running
26********************
27
28.. zephyr-app-commands::
29   :zephyr-app: samples/sensor/isl29035
30   :board: nrf52dk_nrf52832
31   :goals: build
32   :compact:
33
34Sample Output
35=============
36
37.. code-block:: console
38
39   *** Booting Zephyr OS build zephyr-v2.1.0-335-gfe020d937d43  ***
40   ALERT 365 lux outside range centered on 0 lux.
41   Next alert outside 315 .. 415
42   [0:00:00.018] Ambient light sense: 365.234
43   [0:00:10.023] Ambient light sense: 361.084
44   ALERT 302 lux outside range centered on 365 lux.
45   Next alert outside 252 .. 352
46   [0:00:13.276] Ambient light sense: 302.734
47   ALERT 247 lux outside range centered on 302 lux.
48   Next alert outside 197 .. 297
49   [0:00:14.619] Ambient light sense: 247.62
50   ALERT 187 lux outside range centered on 247 lux.
51   Next alert outside 137 .. 237
52   [0:00:16.141] Ambient light sense: 187.927
53   ALERT 126 lux outside range centered on 187 lux.
54   Next alert outside 76 .. 176
55   [0:00:16.410] Ambient light sense: 126.953
56   ALERT 181 lux outside range centered on 126 lux.
57   Next alert outside 131 .. 231
58   [0:00:17.843] Ambient light sense: 181.03
59   ALERT 235 lux outside range centered on 181 lux.
60   Next alert outside 185 .. 285
61   [0:00:18.022] Ambient light sense: 235.779
62   ALERT 301 lux outside range centered on 235 lux.
63   Next alert outside 251 .. 351
64   [0:00:23.126] Ambient light sense: 301.758
65   ALERT 353 lux outside range centered on 301 lux.
66   Next alert outside 303 .. 403
67   [0:00:23.305] Ambient light sense: 353.333
68   [0:00:33.310] Ambient light sense: 365.112
69
70   <repeats as necessary>
71