esp_lcd_new_i80_bus(&bus_config, &i80_bus); /* 初始化LCD面板,使用上述8080总线,并设置CS引脚以及总线频率 */ esp_lcd_panel_io_handle_t io_handle; esp_lcd_panel_io_i80_config_t io_config = { .cs_gpio_num = BSP_LCD_CS_PIN, //CS引脚 .pclk_hz = pclk_mhz*1000000, //总线时钟频...
.lcd_param_bits = LCD_PARAM_BITS, }; ESP_ERROR_CHECK(esp_lcd_new_panel_io_i80(i80_bus, &io_config, &io_handle)); esp_lcd_panel_handle_t panel_handle = NULL; ESP_LOGI(TAG, "Install LCD driver of st7789"); esp_lcd_panel_dev_config_t panel_config = { ...
* @param[in] user_ctx User data, passed from `esp_lcd_panel_io_xxx_config_t` * @return Whether a high priority task has been waken up by this function */ typedef bool (*esp_lcd_panel_io_color_trans_done_cb_t)(esp_lcd_panel_io_handle_t panel_io, esp_lcd_panel_io_event_...
I certainly don't have that request. I'm accessing the device via I80 and part of the initialization chain of calling esp_lcd_new_panel_st7789 has you building an esp_lcd_panel_io_i80_config_t which has that setting. Perhaps you're using a different protocol that is missing this? You...
esp_lcd_i80_bus_config_t bus_config;esp_lcd_panel_io_handle_t io_handle;esp_lcd_panel_io_i80_config_t io_config;}mp_esp32s3_i80lcd_obj_t;const mp_obj_type_t mp_esp32s3_i80lcd_type;voidesp32s3_hw_i80lcd_deinit(mp_esp32s3_i80lcd_obj_t*i80lcd);//***// The RGB lcd struct...
I also set trans_queue_depth to 1 in esp_lcd_panel_io_i80_config_t, just in case. Display size is 480x320, 2 bytes per pixel. At 2-4 MHz I get the expected framerate of 6-14 FPS respectively. At 5 MHz this breaks and I get a reported FPS of 32; the screen doesn't get ...
I'll copy my example code which is based on esp32's i80 display example. Thanks in advance Code:Select all #include<stdio.h>#include"string.h"#include"freertos/FreeRTOS.h"#include"freertos/task.h"#include"esp_timer.h"#include"esp_lcd_panel_io.h"#include"esp_lcd_panel_vendor.h"#in...
CONFIG_SOC_UART_SUPPORTED=y CONFIG_SOC_PCNT_SUPPORTED=y CONFIG_SOC_WIFI_SUPPORTED=y CONFIG_SOC_TWAI_SUPPORTED=y CONFIG_SOC_GDMA_SUPPORTED=y CONFIG_SOC_AHB_GDMA_SUPPORTED=y CONFIG_SOC_GPTIMER_SUPPORTED=y CONFIG_SOC_LCDCAM_SUPPORTED=y CONFIG_SOC_MCPWM_SUPPORTED=y CONFIG_SOC_DEDIC...
由于是初次点屏,因此先从IDF里的example/peripherals/lcd示例走起,spi接口先跑tjpgd示例,8080接口跑i80_controller示例。如果idf里没有这个示例,可以先升级一下IDF版本,当然也可以直接跑lvgl示例。 以下仅展示例程中的代码修改部分: spi接口: 1.修改对应引脚io和屏幕大小: ...
CONFIG_SOC_TWAI_SUPPORTED=y CONFIG_SOC_GDMA_SUPPORTED=y CONFIG_SOC_AHB_GDMA_SUPPORTED=y CONFIG_SOC_GPTIMER_SUPPORTED=y CONFIG_SOC_LCDCAM_SUPPORTED=y CONFIG_SOC_LCDCAM_I80_LCD_SUPPORTED=y CONFIG_SOC_LCDCAM_RGB_LCD_SUPPORTED=y CONFIG_SOC_MCPWM_SUPPORTED=y CONFIG_SOC_DEDICATED_GPIO_SUPPORTED=...