README.rst
1.. _ht16k33:
2
3HT16K33 LED driver with keyscan
4###############################
5
6Overview
7********
8
9This sample controls the LEDs connected to a `Holtek HT16K33`_
10driver. The sample supports up to 128 LEDs connected to the
11rows/columns of the HT16K33.
12
13The LEDs are controlled using the following pattern:
14
15 1. turn on all connected (up to 128) LEDs one-by-one
16 2. blink the LEDs at 2 Hz, 1 Hz, and 0.5 Hz
17 3. reduce the brightness gradually from 100% to 0%
18 4. turn off all LEDs, restore 100% brightness, and start over
19
20The sample logs keyscan events on the console.
21
22Building and Running
23********************
24
25Build the application for the :ref:`nrf52840dk_nrf52840` board, and
26connect a HT16K33 LED driver at address 0x70 on the I2C-0 bus.
27
28.. zephyr-app-commands::
29 :zephyr-app: samples/drivers/ht16k33
30 :board: nrf52840dk_nrf52840
31 :goals: build
32 :compact:
33
34For flashing the application, refer to the Flashing section of the
35:ref:`nrf52840dk_nrf52840` board documentation.
36
37References
38**********
39
40.. target-notes::
41
42.. _Holtek HT16K33: http://www.holtek.com/productdetail/-/vg/HT16K33
43