mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-03 22:41:56 +00:00
Simple sample to test touch panel drivers. Outputs a message to the console on every touch event. Signed-off-by: Mark Olsson <mark@markolsson.se>
27 lines
607 B
ReStructuredText
27 lines
607 B
ReStructuredText
.. kscan-sample:
|
|
|
|
KSCAN touch panel example
|
|
####################################
|
|
|
|
Overview
|
|
********
|
|
|
|
This sample demonstrates how to interface with a touch panel. When touches are
|
|
detected a log message is output on the console.
|
|
|
|
Building and Running
|
|
********************
|
|
|
|
The sample can be built and executed on boards with a touch panel for example
|
|
stm32f746g_disco or mimxrt1060_evk. The boards dts file should contain an alias
|
|
to kscan0
|
|
|
|
Sample output
|
|
=============
|
|
|
|
.. code-block:: console
|
|
|
|
KSCAN test for touch panels.
|
|
Note: You are expected to see several callbacks
|
|
as you touch the screen.
|