|
idfxx 1.0.0
Modern C++23 components for ESP-IDF
|
Configuration structure for touch controllers. More...
Public Attributes | ||
| uint16_t | x_max = 0 | |
| X coordinates max (for mirroring) | ||
| uint16_t | y_max = 0 | |
| Y coordinates max (for mirroring) | ||
| gpio | rst_gpio = gpio::nc() | |
| GPIO number of reset pin. | ||
| gpio | int_gpio = gpio::nc() | |
| GPIO number of interrupt pin. | ||
| struct { | ||
| gpio::level reset = gpio::level::low | ||
| Level of reset pin in reset. More... | ||
| gpio::level interrupt = gpio::level::low | ||
| Active level of interrupt pin. More... | ||
| } | levels = {} | |
| struct { | ||
| unsigned int swap_xy: 1 = 0 | ||
| Swap X and Y after read coordinates. More... | ||
| unsigned int mirror_x: 1 = 0 | ||
| Mirror X after read coordinates. More... | ||
| unsigned int mirror_y: 1 = 0 | ||
| Mirror Y after read coordinates. More... | ||
| } | flags = {} | |
| Callback to apply user adjustments after reading coordinates from the touch controller. | ||
| process_coordinates_callback | process_coordinates = nullptr | |
Configuration structure for touch controllers.
All fields have sensible defaults, but you must define x_max and y_max at minimum.
| struct { ... } idfxx::lcd::touch::config::flags |
Callback to apply user adjustments after reading coordinates from the touch controller.
| gpio::level idfxx::lcd::touch::config::interrupt = gpio::level::low |
| struct { ... } idfxx::lcd::touch::config::levels |
| process_coordinates_callback idfxx::lcd::touch::config::process_coordinates = nullptr |
| gpio::level idfxx::lcd::touch::config::reset = gpio::level::low |
| uint16_t idfxx::lcd::touch::config::x_max = 0 |
| uint16_t idfxx::lcd::touch::config::y_max = 0 |