build/dts/api/bindings/input/zephyr,lvgl-button-input.html · build/dts/api/bindings/input/zephyr,lvgl-button-input.rst 공식 원문 ↗

Zephyr 3.7.0 · Devicetree · Input · Zephyr-specific binding

Zephyr LVGL Button Input 바인딩

Zephyr button event를 LVGL button input-device의 좌표 click으로 변환를 정의하는 3개 property schema입니다.

Official pathbuild/dts/api/bindings/input/zephyr,lvgl-button-input.html
Source filebuild/dts/api/bindings/input/zephyr,lvgl-button-input.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

공식 원문 100줄과 property 3행을 전수 대조해 input-code list·optional point mapping·LVGL indev routing 제약을 보존했습니다.

Compatible

zephyr,lvgl-button-input

Vendor

Zephyr-specific binding

Properties

3 rows

Interface

Button input events → LVGL click coordinates

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 039D9591D255A4373AE627010890819817C5BC412BB42A50A287688450209F19
:orphan:

.. raw:: html

    <!--
    FIXME: do not limit page width until content uses another representation
    format other than tables
    -->
    <style>.wy-nav-content { max-width: none; !important }</style>

.. dtcompatible:: zephyr,lvgl-button-input
.. _dtbinding_zephyr_lvgl_button_input:

zephyr,lvgl-button-input
########################

Vendor: :ref:`Zephyr-specific binding <dt_vendor_zephyr>`

Description
***********



.. code-block:: none

   LVGL button indev pseudo-device

   Listens for button input events and routes the
   lv_indev_data_t to the underlying button lv_indev_t managed by LVGL.

   Example configuration:

   pointer {
           compatible = "zephyr,lvgl-button-input";
           input = <&buttons>;
           input-codes = <INPUT_KEY_0 INPUT_KEY_1>;
           coordinates = <120 220>, <150 250>;
   };

   When the device receives an input_event with code INPUT_KEY_0
   a click event will be performed at (120,220).

Properties
**********

.. tabs::

   .. group-tab:: Node specific properties

      Properties not inherited from the base binding file.

      .. list-table::
         :widths: 1 1 4
         :header-rows: 1

         * - Name
           - Type
           - Details

         * - ``input``
           - ``phandle``
           - .. code-block:: none

                Input device phandle.



         * - ``input-codes``
           - ``array``
           - .. code-block:: none

                Array of input event key codes (INPUT_KEY_* or INPUT_BTN_*).



             This property is **required**.

         * - ``coordinates``
           - ``array``
           - .. code-block:: none

                Array of points (x,y) the associated input-code is mapped to.





   .. group-tab:: Deprecated node specific properties

      Deprecated properties not inherited from the base binding file.

      (None)

   .. group-tab:: Base properties

      Properties inherited from the base binding file, which defines
      common properties that may be set on many nodes. Not all of these
      may apply to the "zephyr,lvgl-button-input" compatible.

      (None)


Part 3

한국어 전문 번역

zephyr,lvgl-button-input

Vendor: Zephyr-specific binding

공식 설명

LVGL button indev pseudo-device

Listens for button input events and routes the
lv_indev_data_t to the underlying button lv_indev_t managed by LVGL.

Example configuration:

pointer {
        compatible = "zephyr,lvgl-button-input";
        input = <&buttons>;
        input-codes = <INPUT_KEY_0 INPUT_KEY_1>;
        coordinates = <120 220>, <150 250>;
};

When the device receives an input_event with code INPUT_KEY_0
a click event will be performed at (120,220).

LVGL button indev pseudo-device

Button input event를 받아 LVGL이 관리하는 button lv_indev_t의 lv_indev_data_t로 전달합니다. input-codes만 필수이고 input과 coordinates는 선택입니다.

coordinates는 각 input code가 click할 (x, y) point를 나열합니다. 공식 예에서 INPUT_KEY_0은 (120, 220), INPUT_KEY_1은 (150, 250)에 대응합니다.

Input-code와 coordinate 배열 길이 검증, display rotation과 out-of-range 처리 규칙은 이 page에 없습니다.

속성 전체 번역

공식 node-specific 3개 property를 번역했으며 base property 표는 비어 있습니다.

노드 전용 속성 · 3개
이름형식설명과 제약
inputphandleEvent를 받을 특정 input device의 phandle입니다.
input-codesarrayCAP1203 channel에 대응할 INPUT_KEY_* 또는 INPUT_BTN_* event code 배열입니다.
필수
coordinatesarray각 input code에 대응하는 LVGL click point의 (x, y) 배열입니다.

Source

출처

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