|
| 1 | +.. _adafruit_ht16k33: |
| 2 | + |
| 3 | +Adafruit HT16K33 LED Matrix Shield |
| 4 | +################################## |
| 5 | + |
| 6 | +Overview |
| 7 | +******** |
| 8 | + |
| 9 | +The `Adafruit Small 1.2 inch 8x8 LED Matrix with I2C Backpack`_ features |
| 10 | +a `Holtek HT16K33 LED Controller Driver`_, an 8x8 LED matrix and two STEMMA QT connectors. |
| 11 | + |
| 12 | +This shield definition can also be used with other shields having a HT16K33 LED |
| 13 | +controller. The controller exposes up to 128 LEDs, and the mapping between a LED number |
| 14 | +and a physical LED might differ on different shields. |
| 15 | +See `Discussion on other LED backpacks`_. |
| 16 | + |
| 17 | +.. figure:: adafruit_ht16k33.webp |
| 18 | + :align: center |
| 19 | + :alt: Adafruit 8x8 LED Matrix Shield |
| 20 | + |
| 21 | + Adafruit 8x8 LED Matrix Shield (Credit: Adafruit) |
| 22 | + |
| 23 | + |
| 24 | +Requirements |
| 25 | +************ |
| 26 | + |
| 27 | +This shield can be used with boards which provide an I2C connector, for |
| 28 | +example STEMMA QT or Qwiic connectors. |
| 29 | +The target board must define a ``zephyr_i2c`` node label. |
| 30 | +See :ref:`shields` for more details. |
| 31 | + |
| 32 | + |
| 33 | +Pin Assignments |
| 34 | +=============== |
| 35 | + |
| 36 | ++--------------+-------------------+ |
| 37 | +| Shield Pin | Function | |
| 38 | ++==============+===================+ |
| 39 | +| SDA | HT16K33 I2C SDA | |
| 40 | ++--------------+-------------------+ |
| 41 | +| SCL | HT16K33 I2C SCL | |
| 42 | ++--------------+-------------------+ |
| 43 | + |
| 44 | +See :dtcompatible:`holtek,ht16k33` for documentation on devicetree settings. |
| 45 | + |
| 46 | + |
| 47 | +Programming |
| 48 | +*********** |
| 49 | + |
| 50 | +Set ``--shield adafruit_ht16k33`` when you invoke ``west build``. For example |
| 51 | +when running the :zephyr:code-sample:`ht16k33` sample: |
| 52 | + |
| 53 | +.. zephyr-app-commands:: |
| 54 | + :zephyr-app: samples/drivers/ht16k33 |
| 55 | + :board: adafruit_qt_py_rp2040 |
| 56 | + :shield: adafruit_ht16k33 |
| 57 | + :goals: build |
| 58 | + |
| 59 | +.. _Adafruit Small 1.2 inch 8x8 LED Matrix with I2C Backpack: |
| 60 | + https://www.adafruit.com/product/1632 |
| 61 | + |
| 62 | +.. _Discussion on other LED backpacks: |
| 63 | + https://learn.adafruit.com/adafruit-led-backpack |
| 64 | + |
| 65 | +.. _Holtek HT16K33 LED Controller Driver: |
| 66 | + https://www.holtek.com/page/vg/HT16K33A |
0 commit comments