Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Benjamin Cabé 776c0cab9a doc: boards: nordic: Adopt zephyr:board directives 3 months ago
..
boards kscan: drop kscan and any reference 4 months ago
src kscan: drop kscan and any reference 4 months ago
CMakeLists.txt
README.rst doc: boards: nordic: Adopt zephyr:board directives 3 months ago
prj.conf kscan: drop kscan and any reference 4 months ago
sample.yaml hwmv2: Introduce Hardware model version 2 and convert devices 1 year ago

README.rst

.. zephyr:code-sample:: ht16k33
:name: HT16K33 LED driver with keyscan
:relevant-api: led_interface input_interface

Control up to 128 LEDs connected to an HT16K33 LED driver and log keyscan events.

Overview
********

This sample controls the LEDs connected to a `Holtek HT16K33`_
driver. The sample supports up to 128 LEDs connected to the
rows/columns of the HT16K33.

The LEDs are controlled using the following pattern:

1. turn on all connected (up to 128) LEDs one-by-one
2. blink the LEDs at 2 Hz, 1 Hz, and 0.5 Hz
3. reduce the brightness gradually from 100% to 0%
4. turn off all LEDs, restore 100% brightness, and start over

The sample logs keyscan events on the console.

Building and Running
********************

Build the application for the :zephyr:board:`nrf52840dk` board, and
connect an HT16K33 LED driver at address 0x70 on the I2C-0 bus.

.. zephyr-app-commands::
:zephyr-app: samples/drivers/ht16k33
:board: nrf52840dk/nrf52840
:goals: build
:compact:

For flashing the application, refer to the Flashing section of the
:zephyr:board:`nrf52840dk` board documentation.

References
**********

.. target-notes::

.. _Holtek HT16K33: https://www.holtek.com/page/vg/HT16K33A