samples/basic/fade_led/README.html · samples/basic/fade_led/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · PWM

Fade LED

LED를 서서히 밝히고 어둡게 하며 PWM period가 flicker fusion threshold보다 빠른지 확인합니다.

Official pathsamples/basic/fade_led/README.html
Source filesamples/basic/fade_led/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

PWM Blinky와 같은 wiring 요구사항과 nRF52840 DK build·flash 절차를 설명합니다.

Cycle

2.5 seconds

API

PWM

Period

Devicetree

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 C14A4F4ECD08633016CCD95719509B3AC7B95018FBA85BC8243FC7F3C63B1FAB
.. zephyr:code-sample:: fade-led
   :name: Fade LED
   :relevant-api: pwm_interface

   Fade an LED using the PWM API.

Overview
********

This application "fades" a LED using the :ref:`PWM API <pwm_api>`.

The LED starts off increases its brightness until it is fully or nearly fully
on. The brightness then decreases until the LED is off, completing on fade
cycle. Each cycle takes 2.5 seconds, and the cycles repeat forever. The PWM
period is taken from Devicetree. It should be fast enough to be above the
flicker fusion threshold.

Requirements and Wiring
***********************

This sample has the same requirements and wiring considerations as the
:zephyr:code-sample:`pwm-blinky` sample.

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

To build and flash this sample for the :ref:`nrf52840dk_nrf52840`:

.. zephyr-app-commands::
   :zephyr-app: samples/basic/fade_led
   :board: nrf52840dk/nrf52840
   :goals: build flash
   :compact:

Change ``nrf52840dk/nrf52840`` appropriately for other supported boards.

After flashing, the sample starts fading the LED as described above. It also
prints information to the board's console.

Part 3

한국어 전문 번역

개요

이 application은 PWM API로 LED 밝기를 서서히 변화시킵니다.

LED는 꺼진 상태에서 시작해 완전히 또는 거의 완전히 켜질 때까지 밝아지고, 다시 꺼질 때까지 어두워져 한 fade cycle을 마칩니다. Cycle은 2.5초가 걸리며 계속 반복됩니다. PWM period는 Devicetree에서 가져오며 깜박임 융합 임계값보다 충분히 빨라야 합니다.

요구사항과 배선

이 sample의 요구사항과 배선 고려사항은 PWM Blinky sample과 같습니다.

Build와 실행

nrf52840dk/nrf52840용 sample은 다음과 같이 build하고 flash합니다.

west build -b nrf52840dk/nrf52840 samples/basic/fade_led
west flash

다른 지원 board에서는 board 이름을 알맞게 바꾸십시오. Flash가 끝나면 설명한 방식으로 LED 밝기가 변하고 board console에도 정보가 출력됩니다.

Source

출처

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