Part 1
요약·해설
Fixture 요구 사항, map file 설정과 callback 출력을 보존합니다.
Input
Keyboard Matrix
Events
Press · Release
Fixture
fixture_connect_keyboard
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
원문 SHA-256
262002651FD08E67D18F52A4AECAE0484AC91471B4ECB354E479EB47D23B8CD7
.. zephyr:code-sample:: kscan
:name: KSCAN
:relevant-api: kscan_interface timer_apis
Use the KSCAN API to read key presses and releases on a keyboard matrix.
Overview
********
This sample demonstrates how to use the :ref:`KSCAN API <kscan_api>`.
Callbacks are registered that will write to the console indicating KSCAN events.
These events indicate key presses and releases.
Building and Running
********************
The sample can be built and executed on boards supporting a Keyboard Matrix.
It requires a correct fixture setup. Please connect a Keyboard Matrix to
exercise the functionality (you need to obtain the right keymap from the vendor
because they vary across different manufactures).
For the correct execution of that sample in twister, add into boards's
map-file next fixture settings::
- fixture: fixture_connect_keyboard
Sample output
=============
.. code-block:: console
KSCAN test with a Keyboard matrix
Note: You are expected to see several callbacks
as you press and release keys!
Part 3
한국어 전문 번역
개요
이 sample은 KSCAN API의 사용법을 보여줍니다. KSCAN event를 console에 기록하는 callback을 등록합니다. 이 event는 key press와 release를 나타냅니다.
Build와 실행
이 sample은 Keyboard Matrix를 지원하는 board에서 build하고 실행할 수 있습니다. 올바른 fixture 설정이 필요하므로 기능을 시험할 Keyboard Matrix를 연결하십시오. 제조사마다 keymap이 다르므로 vendor에서 올바른 keymap을 구해야 합니다.
Twister에서 sample을 올바르게 실행하려면 board의 map file에 다음 fixture 설정을 추가합니다.
- fixture: fixture_connect_keyboard
Sample 출력
KSCAN test with a Keyboard matrix
Note: You are expected to see several callbacks
as you press and release keys!
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.