|
| 1 | +.. _adafruit_ltr329: |
| 2 | + |
| 3 | +Adafruit LTR-329 Shield |
| 4 | +####################### |
| 5 | + |
| 6 | + |
| 7 | +Overview |
| 8 | +******** |
| 9 | + |
| 10 | +The `Adafruit LTR-329 Light Sensor Shield`_ features a `LiteOn LTR-329ALS-01 Digital Light Sensor`_ |
| 11 | +and two STEMMA QT connectors. |
| 12 | + |
| 13 | +.. figure:: adafruit_ltr329.webp |
| 14 | + :align: center |
| 15 | + :alt: Adafruit LTR-329 Shield |
| 16 | + |
| 17 | + Adafruit LTR-329 Shield (Credit: Adafruit) |
| 18 | + |
| 19 | + |
| 20 | +Requirements |
| 21 | +************ |
| 22 | + |
| 23 | +This shield can be used with boards which provide an I2C connector, for example STEMMA QT or |
| 24 | +Qwiic connectors. The target board must define a ``zephyr_i2c`` node label. See :ref:`shields` for |
| 25 | +more details. |
| 26 | + |
| 27 | + |
| 28 | +Pin Assignments |
| 29 | +=============== |
| 30 | + |
| 31 | ++--------------+-----------------------+ |
| 32 | +| Shield Pin | Function | |
| 33 | ++==============+=======================+ |
| 34 | +| SDA | LTR-329 I2C SDA | |
| 35 | ++--------------+-----------------------+ |
| 36 | +| SCL | LTR-329 I2C SCL | |
| 37 | ++--------------+-----------------------+ |
| 38 | + |
| 39 | +See :dtcompatible:`liteon,ltr329` for documentation on how to adjust the devicetree file, to for |
| 40 | +example adjust the integration time. |
| 41 | + |
| 42 | + |
| 43 | +Programming |
| 44 | +*********** |
| 45 | + |
| 46 | +Set ``--shield adafruit_ltr329`` when you invoke ``west build``. For example when running the |
| 47 | +:zephyr:code-sample:`light_sensor_polling` light measurement sample: |
| 48 | + |
| 49 | +.. zephyr-app-commands:: |
| 50 | + :zephyr-app: samples/sensor/light_polling |
| 51 | + :board: adafruit_metro_rp2040 |
| 52 | + :shield: adafruit_ltr329 |
| 53 | + :goals: build |
| 54 | + |
| 55 | +.. _Adafruit LTR-329 Light Sensor Shield: |
| 56 | + https://learn.adafruit.com/adafruit-ltr-329-ltr-303 |
| 57 | + |
| 58 | +.. _LiteOn LTR-329ALS-01 Digital Light Sensor: |
| 59 | + https://optoelectronics.liteon.com/upload/download/DS86-2014-0006/LTR-329ALS-01_DS_V1.8.PDF |
0 commit comments