zephyr/samples/drivers/kscan_touch
Kumar Gala 5ac8fca9cb kscan: Introduce zephyr,keyboard-scan chosen prop
Introduce zephyr,keyboard-scan chosen node property to point to the
node that implements the default KSCAN device.  This is similar to
the zephyr,display property.

We switch over the samples to utilize the new property instead of
kscan0 alias.

Signed-off-by: Kumar Gala <galak@kernel.org>
2022-08-12 17:54:03 -05:00
..
src
CMakeLists.txt
README.rst
prj.conf
sample.yaml

README.rst

.. _kscan-touch-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.