samples/drivers/ht16k33/README.html · samples/drivers/ht16k33/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · Drivers · LED

HT16K33 LED와 Keyscan

점등·blink·brightness 변화의 네 단계 pattern을 반복합니다.

Official pathsamples/drivers/ht16k33/README.html
Source filesamples/drivers/ht16k33/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

I2C-0 address 0x70 연결, build 명령과 flashing 참조를 보존합니다.

LEDs

Up to 128

Blink

2 · 1 · 0.5 Hz

I2C address

0x70

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 1AD2FC492C7EFD3335F48D53C8A10A55A91538B2F361C246720BDF5169FF1879
.. zephyr:code-sample:: ht16k33
   :name: HT16K33 LED driver with keyscan
   :relevant-api: led_interface kscan_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 :ref:`nrf52840dk_nrf52840` 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
:ref:`nrf52840dk_nrf52840` board documentation.

References
**********

.. target-notes::

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

Part 3

한국어 전문 번역

개요

이 sample은 Holtek HT16K33 driver에 연결된 LED를 제어합니다. HT16K33의 row와 column에 연결된 LED를 최대 128개까지 지원합니다.

LED는 다음 pattern으로 제어합니다.

  1. 연결된 모든 LED를 최대 128개까지 하나씩 켭니다.
  2. LED를 2Hz, 1Hz, 0.5Hz로 깜박입니다.
  3. Brightness를 100%에서 0%까지 점진적으로 낮춥니다.
  4. 모든 LED를 끄고 brightness를 100%로 복원한 뒤 처음부터 다시 시작합니다.

Sample은 keyscan event를 console에 기록합니다.

Build와 실행

nrf52840dk/nrf52840 board용 application을 build하고, I2C-0 bus의 address 0x70에 HT16K33 LED driver를 연결합니다.

west build -b nrf52840dk/nrf52840 samples/drivers/ht16k33

Application을 flash하는 방법은 nrf52840dk/nrf52840 board 문서의 Flashing 절을 참조하십시오.

참고 자료

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.