31#include "../SensorBuildOpt.h"
32#if !SENSORLIB_EXCLUDE_TOUCH_CST816
36static constexpr uint8_t CST816_SLAVE_ADDRESS = (0x15);
61 void sleep()
override;
93 bool initImpl(uint8_t)
override;
95 void beforeBegin()
override
TouchDrvCST816()=default
Constructor for the touch driver.
void sleep() override
Puts the touch driver to sleep.
static constexpr uint8_t CST8xx_REG_SLEEP
static constexpr uint8_t MAX_FINGER_NUM
const TouchPoints & getTouchPoints() override
Get the touch points.
void enableAutoSleep()
Enable auto sleep mode.
static constexpr uint8_t CST820_CHIP_ID
static constexpr uint8_t CST8xx_REG_DIS_AUTOSLEEP
static constexpr uint8_t CST816D_CHIP_ID
static constexpr uint8_t CST8xx_REG_XPOS_LOW
static constexpr uint8_t CST816S_CHIP_ID
static constexpr uint8_t CST8xx_REG_XPOS_HIGH
static constexpr uint8_t CST8xx_REG_FW_VERSION
void disableAutoSleep()
Disable auto sleep mode.
~TouchDrvCST816()=default
Destructor for the touch driver.
static constexpr uint8_t CST8xx_REG_STATUS
static constexpr uint8_t CST8xx_REG_CHIP_ID
static constexpr uint8_t CST716_CHIP_ID
const char * getModelName() override
Get the model name.
static constexpr uint8_t CST8xx_REG_YPOS_HIGH
static constexpr uint8_t CST8xx_REG_YPOS_LOW
static constexpr uint8_t CST816T_CHIP_ID
Abstract base class for touch screen drivers.
virtual uint8_t getPoint(int16_t *x_array, int16_t *y_array, uint8_t get_point=1) __attribute__((deprecated("use getTouchPoints instead of getPoint")))
Retrieve touch point coordinates (deprecated).
TouchPinsCfg _pinsCfg
Configuration for reset and interrupt pins.
Container for touch point data and optional gesture information.