18struct esp_lcd_touch_s;
43 typedef std::move_only_function<
44 void(uint16_t* x, uint16_t* y, uint16_t* strength, uint8_t* point_num, uint8_t max_point_num)>
static constexpr gpio nc()
Returns a GPIO representing "not connected".
level
GPIO output/input level.
Abstract base class for touch controllers.
touch & operator=(const touch &)=delete
touch(touch &&) noexcept=default
esp_lcd_touch_handle_t idf_handle() const
Returns the underlying ESP-IDF handle.
touch(const touch &)=delete
std::move_only_function< void(uint16_t *x, uint16_t *y, uint16_t *strength, uint8_t *point_num, uint8_t max_point_num)> process_coordinates_callback
Callback type for processing touch coordinates.
virtual esp_lcd_touch_handle_t do_idf_handle() const =0
Hook for idf_handle.
Configuration structure for touch controllers.
process_coordinates_callback process_coordinates
Callback to apply user adjustments after reading coordinates from the touch controller.
bool mirror_y
Mirror Y after read coordinates.
uint16_t y_max
Y coordinates max (for mirroring)
gpio::level reset_level
Level of reset pin in reset.
bool swap_xy
Swap X and Y after read coordinates.
uint16_t x_max
X coordinates max (for mirroring)
bool mirror_x
Mirror X after read coordinates.
gpio rst_gpio
GPIO number of reset pin.
gpio int_gpio
GPIO number of interrupt pin.
gpio::level interrupt_level
Active level of interrupt pin.
struct esp_lcd_touch_s esp_lcd_touch_t
esp_lcd_touch_t * esp_lcd_touch_handle_t