Draw touch events
Overview
This sample will draw a small plus in the last touched coordinates, that way you can check if the touch screen works for a board, examine its parameters such as inverted/swapped axes.
Building and Running
While this is a generic sample and it should work with any boards with both display controllers
and touch controllers supported by Zephyr (provided the corresponding /chosen node
properties
are set i.e. zephyr,touch
and zephyr,display
).
Below is an example on how to build the sample for STM32F746G Discovery:
west build -b stm32f746g_disco samples/subsys/input/draw_touch_events
For testing purposes without the need of any hardware, the native_sim board is also supported and can be built as follows:
west build -b native_sim samples/subsys/input/draw_touch_events