/** * @file touch_driver.h * @brief Touch controller driver interface * * This module provides abstraction for touch input initialization and * LVGL input device registration. The driver can be enabled/disabled * via TOUCH_ENABLED in hardware_config.h. */ #ifndef TOUCH_DRIVER_H #define TOUCH_DRIVER_H #include "esp_lcd_touch.h" #include #ifdef __cplusplus extern "C" { #endif /** * @brief Initialize the touch controller * * Sets up the FT5x06 touch controller over I2C and registers * it as an LVGL input device. The I2C bus must be initialized * before calling this function (done by displayDriverInit). * * @return true on success, false on failure */ bool touchDriverInit(void); /** * @brief Get the touch controller handle * * Returns the ESP-LCD touch handle for direct access if needed. * * @return Touch handle, or NULL if not initialized */ esp_lcd_touch_handle_t touchDriverGetHandle(void); #ifdef __cplusplus } #endif #endif // TOUCH_DRIVER_H