Skip to content

TouchConfig

Struct

Source: TouchConfig.h

Description

Configuration for touch controller

Add to DisplayConfig or use standalone. Define one of TOUCH_DRIVER_XPT2046 or TOUCH_DRIVER_GT911 in build flags.

Properties

NameTypeDescription
controllerTouchControllerActive controller

Methods

static TouchConfig createXPT2046(uint8_t cs, uint8_t irq = 255)

Description:

Constructor for XPT2046

static TouchConfig createGT911(uint8_t irq = 4)

Description:

Constructor for GT911

Released under the MIT License.