Part 1
요약·해설
시험 pattern, DTS overlay, I2C 주소 0x74를 보존합니다.
16
led_write_channels
0x74
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
2F9FA047DA4CAEE8764DBB6A984951153A072612A09F6B068C460B649BC55610
.. zephyr:code-sample:: is31fl3216a
:name: IS31FL3216A LED
:relevant-api: led_interface
Control up to 16 PWM LEDs connected to an IS31FL3216A driver chip.
Overview
********
This sample controls up to 16 LEDs connected to a is31fl3216a driver.
Each LED is gradually pulsed until it reach 100% of luminosity and gradually
turned off again.
Once each LED was pulsed, multiple LEDs are pulse simultaneously using the
:c:func:`led_write_channels` API.
Test pattern
============
For each LED:
- Increase the luminosity until 100% is reached
- Decrease the luminosity until completely turned off
- Increase the luminosity of LEDs 2 to 4 until 100% is reached
- Decrease the luminosity of LEDs 2 to 4 until completely turned off
Building and Running
********************
This sample can be built and executed when the devicetree has an I2C device node
with compatible :dtcompatible:`issi,is31fl3216a` enabled, along with the relevant
bus controller node also being enabled.
As an example this sample provides a DTS overlay for the :ref:`lpcxpresso55s28`
board (:file:`boards/lpcxpresso55s28.overlay`). It assumes that a I2C
_is31fl3216a LED driver (with 16 LEDs wired) is connected to the I2C bus at
address 0x74.
References
**********
- is31fl3216a: https://lumissil.com/assets/pdf/core/IS31FL3216A_DS.pdf
Part 3
한국어 전문 번역
개요
이 sample은 IS31FL3216A driver에 연결된 LED를 최대 16개까지 제어합니다.
각 LED는 밝기가 100%에 도달할 때까지 서서히 밝아진 다음 다시 서서히 꺼집니다.
각 LED를 한 번씩 pulse한 뒤에는 led_write_channels API를 사용해 여러 LED를 동시에 pulse합니다.
시험 pattern
각 LED에 다음 동작을 수행합니다.
- 밝기가 100%에 도달할 때까지 높입니다.
- 완전히 꺼질 때까지 밝기를 낮춥니다.
- LED 2~4의 밝기가 100%에 도달할 때까지 높입니다.
- LED 2~4가 완전히 꺼질 때까지 밝기를 낮춥니다.
Build와 실행
Devicetree에 issi,is31fl3216a compatible의 I2C device node가 활성화되어 있고 관련 bus controller node도 활성화되어 있으면 이 sample을 build하고 실행할 수 있습니다.
예제로 이 sample은 lpcxpresso55s28 board용 DTS overlay인 boards/lpcxpresso55s28.overlay를 제공합니다. 이 overlay는 LED 16개가 배선된 I2C IS31FL3216A LED driver가 주소 0x74로 I2C bus에 연결되어 있다고 가정합니다.
참고 자료
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.