2023-09-06 16:25:28 +08:00
|
|
|
.. zephyr:code-sample:: input-dump
|
|
|
|
:name: Input dump
|
|
|
|
:relevant-api: input_events
|
2023-02-15 19:59:12 +08:00
|
|
|
|
2023-09-06 16:25:28 +08:00
|
|
|
Print all input events.
|
2023-02-15 19:59:12 +08:00
|
|
|
|
|
|
|
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.
|