#ifndef DISPLAY_RGB_H #define DISPLAY_RGB_H #include #include "esp_err.h" #include "esp_lcd_panel_ops.h" #include "lvgl.h" #define DISPLAY_H_RES 800 #define DISPLAY_V_RES 480 /* * Two-phase bring-up, and the order is load-bearing: * * display_alloc() -- BEFORE wifi_init_sta(). Grabs the framebuffers and * the two contiguous bounce buffers while the internal * heap is still unfragmented; WiFi's RX buffer churn * destroys the needed contiguity within seconds. * The panel is not scanning after this. * display_start() -- AFTER WiFi (all flash writes done) and after * lvgl_port_init(). Starts scan-out and registers the * display with LVGL. * * Backlight is NOT owned here on the Advance; see drivers/backlight. */ esp_err_t display_alloc(void); esp_err_t display_start(void); lv_display_t *display_get_default(void); /* Underlying esp_lcd panel, for drawing that bypasses LVGL. */ esp_lcd_panel_handle_t display_get_panel(void); #endif