Part 1
요약·해설
행·열 Kconfig와 FRDM-K22F의 I2C0·SDB 배선을 보존합니다.
LEDs
최대 192
Address
0x50
SDB
PTC2 / A3
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
원문 SHA-256
12ACEAC69EC1375952AE510B44EECD0D6B351023039111EC6A5AD6C0B9F63FF6
.. zephyr:code-sample:: is31fl3733
:name: IS31FL3733 LED Matrix
:relevant-api: led_interface
Control a matrix of up to 192 LEDs connected to an IS31FL3733 driver chip.
Overview
********
This sample controls a matrix of up to 192 LEDs. The sample performs the
following test steps in an infinite loop:
- Set all LEDs to full brightness with :c:func:`led_write_channels` API
- Disable upper quadrant of LED array with :c:func:`led_write_channels` API
- Dim each LED in sequence using :c:func:`led_set_brightness` API
- Toggle each LED in sequency using :c:func:`led_on` and :c:func:`led_of` APIs
- Toggle between low or high current limit using :c:func:`is31fl3733_current_limit`
API, and repeat the above tests
Sample Configuration
====================
The number of LEDs can be limited using the following sample specific Kconfigs:
- :kconfig:option:`CONFIG_LED_ROW_COUNT`
- :kconfig:option:`CONFIG_LED_COLUMN_COUNT`
Building and Running
********************
This sample can be run on any board with an IS31FL3733 LED driver connected via
I2C, and a node with the `issi,is31fl3733` compatible present in its devicetree.
This sample provides a DTS overlay for the :ref:`frdm_k22f` board
(:file:`boards/frdm_k22f.overlay`). It assumes that the IS31FL3733 LED
controller is connected to I2C0, at address 0x50. The SDB GPIO should be
connected to PTC2 (A3 on the arduino header)
Part 3
한국어 전문 번역
개요
이 sample은 최대 192개 LED로 구성된 matrix를 제어합니다. 다음 시험 단계를 무한 반복합니다.
led_write_channelsAPI로 모든 LED를 최대 밝기로 설정합니다.led_write_channelsAPI로 LED array의 위쪽 quadrant를 비활성화합니다.led_set_brightnessAPI로 각 LED를 차례대로 어둡게 만듭니다.led_on과 원문 표기의led_ofAPI로 각 LED를 차례대로 toggle합니다.is31fl3733_current_limitAPI로 낮은 current limit와 높은 current limit를 전환하고 위 시험을 반복합니다.
Sample 설정
LED 개수는 다음 sample 전용 Kconfig로 제한할 수 있습니다.
CONFIG_LED_ROW_COUNTCONFIG_LED_COLUMN_COUNT
Build와 실행
I2C를 통해 IS31FL3733 LED driver가 연결되고 devicetree에 issi,is31fl3733 compatible node가 있는 모든 board에서 이 sample을 실행할 수 있습니다.
이 sample은 frdm_k22f board용 DTS overlay인 boards/frdm_k22f.overlay를 제공합니다. IS31FL3733 LED controller가 주소 0x50으로 I2C0에 연결되어 있다고 가정합니다. SDB GPIO는 PTC2, 즉 Arduino header의 A3에 연결해야 합니다.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.