Files
iroBotAMOLED_Test/main/drivers/touch_driver.h
Neil Arora 8aeaed8a15 Refactor project structure and update display logic
Reorganized source files into new directories for config, drivers, sensors, emotion engine, and UI. Removed legacy assets and code related to previous eye animation implementation. Added new display and touch drivers, emotion manager, shake detector, and UI components. Updated CMake project name to 'irobot_display'.
2026-01-24 15:21:50 +05:30

45 lines
995 B
C

/**
* @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 <stdbool.h>
#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