#ifndef _RGB_LCD_H_ #define _RGB_LCD_H_ #include "esp_log.h" #include "esp_heap_caps.h" #include "driver/gpio.h" #include "driver/i2c.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "esp_lcd_panel_ops.h" #include "esp_lcd_panel_rgb.h" #include "esp_lcd_touch_gt911.h" #include "lvgl_port.h" #define CONFIG_EXAMPLE_LCD_TOUCH_CONTROLLER_GT911 1 // 1 initiates the touch, 0 closes the touch. #define I2C_MASTER_SCL_IO 9 /*!< GPIO number used for I2C master clock */ #define I2C_MASTER_SDA_IO 8 /*!< GPIO number used for I2C master data */ #define I2C_MASTER_NUM 0 /*!< I2C master i2c port number, the number of i2c peripheral interfaces available will depend on the chip */ #define I2C_MASTER_FREQ_HZ 400000 /*!< I2C master clock frequency */ #define I2C_MASTER_TX_BUF_DISABLE 0 /*!< I2C master doesn't need buffer */ #define I2C_MASTER_RX_BUF_DISABLE 0 /*!< I2C master doesn't need buffer */ #define I2C_MASTER_TIMEOUT_MS 1000 #define GPIO_INPUT_IO_4 4 #define GPIO_INPUT_PIN_SEL 1ULL<