This commit is contained in:
Ken Van Hoeylandt
2024-01-02 17:21:56 +01:00
parent 1ca6c3ba28
commit e0fc80ca64
14 changed files with 29 additions and 45 deletions
@@ -31,7 +31,7 @@ IRAM_ATTR static bool prv_on_color_trans_done(esp_lcd_panel_io_handle_t io_handl
return (need_yield == pdTRUE);
}
static bool prv_create_display_device(DisplayDevice* display) {
static bool create_display_device(DisplayDevice* display) {
ESP_LOGI(TAG, "creating display");
gpio_config_t io_conf = {
@@ -125,6 +125,6 @@ static bool prv_create_display_device(DisplayDevice* display) {
DisplayDriver board_2432s024_create_display_driver() {
return (DisplayDriver) {
.name = "ili9341_2432s024",
.create_display_device = &prv_create_display_device
.create_display_device = &create_display_device
};
}
@@ -9,7 +9,7 @@
#define TAG "2432s024_cst816"
static bool prv_create_touch_device(esp_lcd_panel_io_handle_t* io_handle, esp_lcd_touch_handle_t* touch_handle) {
static bool create_touch_device(esp_lcd_panel_io_handle_t* io_handle, esp_lcd_touch_handle_t* touch_handle) {
ESP_LOGI(TAG, "creating touch");
const i2c_config_t i2c_conf = {
@@ -67,6 +67,6 @@ static bool prv_create_touch_device(esp_lcd_panel_io_handle_t* io_handle, esp_lc
TouchDriver board_2432s024_create_touch_driver() {
return (TouchDriver) {
.name = "cst816s_2432s024",
.create_touch_device = &prv_create_touch_device
.create_touch_device = &create_touch_device
};
}