7#ifdef CST328_BUTTON_COUNT
14static constexpr uint8_t CST328_TOUCH_MAX_POINTS = 5;
15static constexpr uint8_t CST328_TOUCH_DATA_SIZE =
cstxxx::report_size(CST328_TOUCH_MAX_POINTS);
17static constexpr uint16_t CST_REG_TOUCH_INFORMATION = cstxxx::REG_TOUCH_DATA;
18static constexpr uint16_t CST_REG_FINGER_COUNT_IDX = cstxxx::FINGER_COUNT_IDX;
19static constexpr uint16_t CST_REG_X_Y_RESOLUTION = cstxxx::REG_RESOLUTION;
20static constexpr uint16_t CST_REG_FW_CRC_AND_BOOT_TIME = cstxxx::REG_FW_CHECK_CODE;
24 void setup()
override;
25#ifdef CST328_BUTTON_COUNT
36#ifdef CST328_BUTTON_COUNT
44#ifdef CST328_BUTTON_COUNT
Minimal static vector - saves memory by avoiding std::vector overhead.
Base class for all binary_sensor-type classes.
void add_button_binary_sensor(binary_sensor::BinarySensor *sensor)
void dump_config() override
StaticVector< binary_sensor::BinarySensor *, CST328_BUTTON_COUNT > buttons_
void update_button_state_(bool state)
void update_touches() override
constexpr size_t report_size(uint8_t points)
Bytes of a touch report holding points records; two status bytes follow the first record.