This is the documentation for the latest (main) development branch of HPM SDK. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

25. Touch Panel

25.1. Overview

The touch_panel example shows touch panel function.

25.2. Board Setting

Connect touch panel to LCD interface on board

25.3. Running the example

When the example runs successfully, toch the panel. The following message will be displayed in the terminal:


> touch example
> 0x14 failed to init GT911, try 0x5d
> [0]: x: 29, y: 10
> [0]: x: 29, y: 10
> [0]: x: 29, y: 10
> [0]: x: 29, y: 37
> [0]: x: 29, y: 44
> [0]: x: 26, y: 94
> [0]: x: 25, y: 148
> [0]: x: 24, y: 178
> [0]: x: 27, y: 239