File tree Expand file tree Collapse file tree 6 files changed +82
-0
lines changed
boards/shields/mikroe_illuminance_click
samples/sensor/light_polling Expand file tree Collapse file tree 6 files changed +82
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Copyright The Zephyr Project Contributors
2
+ # SPDX-License-Identifier: Apache-2.0
3
+
4
+ config SHIELD_MIKROE_ILLUMINANCE_CLICK
5
+ def_bool $(shields_list_contains,mikroe_illuminance_click)
Original file line number Diff line number Diff line change
1
+ .. _mikroe_illuminance_click_shield :
2
+
3
+ MikroElektronika Illuminance Click
4
+ ==================================
5
+
6
+ Overview
7
+ ********
8
+
9
+ `Illuminance Click `_ is a compact add-on board that mimics how humans perceive light. This board
10
+ features ams OSRAM TSL2583, a very-high sensitivity light-to-digital converter that transforms light
11
+ intensity to a digital signal output capable of the direct I2C interface. It combines one broadband
12
+ photodiode (visible plus infrared) and one infrared-responding photodiode on a single CMOS
13
+ integrated circuit capable of providing a near-photopic response over an effective 16-bit dynamic
14
+ range (16-bit resolution). This Click board |trade | is suitable for general-purpose light sensing
15
+ applications to extend battery life and provide optimum viewing in diverse lighting conditions.
16
+
17
+ .. figure :: images/mikroe_illuminance_click.webp
18
+ :align: center
19
+ :alt: Illuminance Click
20
+ :height: 300px
21
+
22
+ Illuminance Click
23
+
24
+ Requirements
25
+ ************
26
+
27
+ This shield can only be used with a board that provides a mikroBUS |trade | socket and defines a
28
+ ``mikrobus_i2c `` node label for the mikroBUS |trade | I2C interface. See :ref: `shields ` for more
29
+ details.
30
+
31
+ Programming
32
+ ***********
33
+
34
+ Set ``-DSHIELD=mikroe_illuminance_click `` when you invoke ``west build ``. For example:
35
+
36
+ .. zephyr-app-commands ::
37
+ :zephyr-app: samples/sensor/light_polling
38
+ :board: mikroe_quail
39
+ :shield: mikroe_illuminance_click
40
+ :goals: build
41
+
42
+ See :dtcompatible: `ams,tsl2561 ` for documentation on the additional binding properties available for
43
+ the TSL2561 sensor, for example to adjust the gain and integration time.
44
+
45
+ References
46
+ **********
47
+
48
+ - `Illuminance Click `_
49
+
50
+ .. _Illuminance Click : https://www.mikroe.com/illuminance-click
Original file line number Diff line number Diff line change
1
+ /*
2
+ * Copyright The Zephyr Project Contributors
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+
6
+ / {
7
+ aliases {
8
+ light-sensor = &tsl2561_mikroe_illuminance_click;
9
+ };
10
+ };
11
+
12
+ &mikrobus_i2c {
13
+ status = "okay";
14
+
15
+ tsl2561_mikroe_illuminance_click: tsl2561@49 {
16
+ compatible = "ams,tsl2561";
17
+ reg = <0x49>;
18
+ };
19
+ };
Original file line number Diff line number Diff line change
1
+ shield :
2
+ name : mikroe_illuminance_click
3
+ full_name : Illuminance Click
4
+ vendor : mikroe
5
+ supported_features :
6
+ - sensor
Original file line number Diff line number Diff line change 24
24
- frdm_mcxw71/mcxw716c
25
25
- adafruit_qt_py_rp2040/rp2040 # adafruit_tsl2591 shield
26
26
- mikroe_clicker_ra4m1/r7fa4m1ab3cfm # mikroe_ambient_2_click shield
27
+ - mikroe_quail/stm32f427xx # mikroe_illuminance_click shield
27
28
extra_args :
28
29
- platform:adafruit_qt_py_rp2040/rp2040:SHIELD="adafruit_tsl2591"
29
30
- platform:mikroe_clicker_ra4m1/r7fa4m1ab3cfm:SHIELD="mikroe_ambient_2_click"
31
+ - platform:mikroe_quail/stm32f427xx:SHIELD="mikroe_illuminance_click"
You can’t perform that action at this time.
0 commit comments