samples/subsys/input/input_dump/README.html · samples/subsys/input/input_dump/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · Input Events

Input dump

Board input driver와 devicetree 연결을 event stream으로 확인합니다.

Official pathsamples/subsys/input/input_dump/README.html
Source filesamples/subsys/input/input_dump/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

지원 조건, board target 교체, exact build·flash command를 보존합니다.

API

input_events

Output

All input events

Requirement

Input driver in devicetree

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 4A1995BEC941F6A86322FF61FCBC9C7A40B7E8F0B8EF60ABF26C9E3E4E415445
.. zephyr:code-sample:: input-dump
   :name: Input dump
   :relevant-api: input_events

   Print all input events.

Overview
********

The Input Dump sample prints any input event using the :ref:`input` APIs.

Requirements
************

The samples works on any board with an input driver defined in the board devicetree.

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

Build and flash as follows, changing ``nrf52dk/nrf52832`` for your board:

.. zephyr-app-commands::
   :zephyr-app: samples/subsys/input/input_dump
   :board: nrf52dk/nrf52832
   :goals: build flash
   :compact:

After starting, the sample will print any input event in the console.

Part 3

한국어 전문 번역

개요

Input Dump sample은 Zephyr input API를 사용해 발생하는 모든 input event를 console에 출력합니다. 새 input driver나 board devicetree 연결을 점검할 때 event가 subsystem까지 전달되는지 바로 확인할 수 있습니다.

요구 사항

Board devicetree에 input driver가 정의된 모든 board에서 동작합니다. 즉 특정 sensor나 button 종류보다 올바른 input device node와 driver 구성이 전제입니다.

빌드 및 실행

다음과 같이 build하고 flash하되 nrf52dk/nrf52832를 실제 사용할 board target으로 바꿉니다.

west build -b nrf52dk/nrf52832 samples/subsys/input/input_dump
west flash

Application이 시작되면 이후 발생하는 모든 input event가 console에 출력됩니다.

Source

출처

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