|
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. | |
| gpio::level | reset_level = gpio::level::low |
| Level of reset pin in reset. | |
| gpio::level | interrupt_level = gpio::level::low |
| Active level of interrupt pin. | |
| bool | swap_xy = false |
| Swap X and Y after read coordinates. | |
| bool | mirror_x = false |
| Mirror X after read coordinates. | |
| bool | mirror_y = false |
| Mirror Y after read coordinates. | |
| process_coordinates_callback | process_coordinates = nullptr |
| Callback to apply user adjustments after reading coordinates from the touch controller. | |
Configuration structure for touch controllers.
All fields have sensible defaults, but you must define x_max and y_max at minimum.
| gpio::level idfxx::lcd::touch::config::interrupt_level = gpio::level::low |
| bool idfxx::lcd::touch::config::mirror_x = false |
| bool idfxx::lcd::touch::config::mirror_y = false |
| process_coordinates_callback idfxx::lcd::touch::config::process_coordinates = nullptr |
| gpio::level idfxx::lcd::touch::config::reset_level = gpio::level::low |
| bool idfxx::lcd::touch::config::swap_xy = false |
| uint16_t idfxx::lcd::touch::config::x_max = 0 |
| uint16_t idfxx::lcd::touch::config::y_max = 0 |