S3驱动RGB屏出现颜色问题

fan183579
Posts: 81
Joined: Thu Nov 25, 2021 6:37 am

S3驱动RGB屏出现颜色问题

Postby fan183579 » Tue Dec 07, 2021 6:04 am

gpio_config_t io_conf = {};
io_conf.intr_type = GPIO_INTR_DISABLE;
io_conf.mode = GPIO_MODE_OUTPUT;
io_conf.pin_bit_mask = GPIO_OUTPUT_PIN_SEL;
io_conf.pull_down_en = 0;
io_conf.pull_up_en = 0;
gpio_config(&io_conf);
gpio_set_level(GPIO_LOW_NUM1, 0);
gpio_set_level(GPIO_LOW_NUM2, 0);
gpio_set_level(GPIO_LOW_NUM3, 0);
gpio_set_level(GPIO_LOW_NUM4, 0);
gpio_set_level(GPIO_LOW_NUM5, 0);
gpio_set_level(GPIO_LOW_NUM6, 0);
gpio_set_level(GPIO_LOW_NUM7, 0);
gpio_set_level(GPIO_LOW_NUM8, 0);
gpio_set_level(TEST_LCD_DISP_EN_GPIO, 1);

lv_disp_t *disp = NULL;
lv_init();

esp_lcd_panel_handle_t panel_handle = NULL;
esp_lcd_rgb_panel_config_t panel_config = {
.data_width = 16,
.disp_gpio_num = -1,
.pclk_gpio_num = TEST_LCD_PCLK_GPIO,
.vsync_gpio_num = TEST_LCD_VSYNC_GPIO,
.hsync_gpio_num = TEST_LCD_HSYNC_GPIO,
.de_gpio_num = TEST_LCD_DE_GPIO,
.data_gpio_nums = {
TEST_LCD_DATA0_GPIO,
TEST_LCD_DATA1_GPIO,
TEST_LCD_DATA2_GPIO,
TEST_LCD_DATA3_GPIO,
TEST_LCD_DATA4_GPIO,
TEST_LCD_DATA5_GPIO,
TEST_LCD_DATA6_GPIO,
TEST_LCD_DATA7_GPIO,
TEST_LCD_DATA8_GPIO,
TEST_LCD_DATA9_GPIO,
TEST_LCD_DATA10_GPIO,
TEST_LCD_DATA11_GPIO,
TEST_LCD_DATA12_GPIO,
TEST_LCD_DATA13_GPIO,
TEST_LCD_DATA14_GPIO,
TEST_LCD_DATA15_GPIO,
},
.timings = {
.pclk_hz = 15000000,
.h_res = TEST_LCD_H_RES,
.v_res = TEST_LCD_V_RES,
.hsync_back_porch = 50,
.hsync_front_porch = 2,
.hsync_pulse_width = 1,
.vsync_back_porch = 30,
.vsync_front_porch = 1,
.vsync_pulse_width = 1,
.flags.pclk_active_neg = 1,

.flags.hsync_idle_low = 1,
.flags.vsync_idle_low = 1,
.flags.pclk_idle_low = 1,
},
.flags.fb_in_psram = 1,
.on_frame_trans_done = notify_lvgl_ready_to_flush,
.user_ctx = &disp,
};
TEST_ESP_OK(esp_lcd_new_rgb_panel(&panel_config, &panel_handle));
TEST_ESP_OK(esp_lcd_panel_reset(panel_handle));
TEST_ESP_OK(esp_lcd_panel_init(panel_handle));
test_lvgl_task_loop(panel_handle, TEST_LCD_H_RES, TEST_LCD_V_RES, &disp); 求帮忙解惑
Attachments
516cfd372b4e1e34b319d8d0dcfb219.png
516cfd372b4e1e34b319d8d0dcfb219.png (2.27 MiB) Viewed 21531 times

jr-test
Posts: 100
Joined: Mon Aug 23, 2021 3:04 am

Re: S3驱动RGB屏出现颜色问题

Postby jr-test » Tue Dec 07, 2021 6:50 am

fan183579 wrote:
Tue Dec 07, 2021 6:04 am
gpio_config_t io_conf = {};
io_conf.intr_type = GPIO_INTR_DISABLE;
io_conf.mode = GPIO_MODE_OUTPUT;
io_conf.pin_bit_mask = GPIO_OUTPUT_PIN_SEL;
io_conf.pull_down_en = 0;
io_conf.pull_up_en = 0;
gpio_config(&io_conf);
gpio_set_level(GPIO_LOW_NUM1, 0);
gpio_set_level(GPIO_LOW_NUM2, 0);
gpio_set_level(GPIO_LOW_NUM3, 0);
gpio_set_level(GPIO_LOW_NUM4, 0);
gpio_set_level(GPIO_LOW_NUM5, 0);
gpio_set_level(GPIO_LOW_NUM6, 0);
gpio_set_level(GPIO_LOW_NUM7, 0);
gpio_set_level(GPIO_LOW_NUM8, 0);
gpio_set_level(TEST_LCD_DISP_EN_GPIO, 1);

lv_disp_t *disp = NULL;
lv_init();

esp_lcd_panel_handle_t panel_handle = NULL;
esp_lcd_rgb_panel_config_t panel_config = {
.data_width = 16,
.disp_gpio_num = -1,
.pclk_gpio_num = TEST_LCD_PCLK_GPIO,
.vsync_gpio_num = TEST_LCD_VSYNC_GPIO,
.hsync_gpio_num = TEST_LCD_HSYNC_GPIO,
.de_gpio_num = TEST_LCD_DE_GPIO,
.data_gpio_nums = {
TEST_LCD_DATA0_GPIO,
TEST_LCD_DATA1_GPIO,
TEST_LCD_DATA2_GPIO,
TEST_LCD_DATA3_GPIO,
TEST_LCD_DATA4_GPIO,
TEST_LCD_DATA5_GPIO,
TEST_LCD_DATA6_GPIO,
TEST_LCD_DATA7_GPIO,
TEST_LCD_DATA8_GPIO,
TEST_LCD_DATA9_GPIO,
TEST_LCD_DATA10_GPIO,
TEST_LCD_DATA11_GPIO,
TEST_LCD_DATA12_GPIO,
TEST_LCD_DATA13_GPIO,
TEST_LCD_DATA14_GPIO,
TEST_LCD_DATA15_GPIO,
},
.timings = {
.pclk_hz = 15000000,
.h_res = TEST_LCD_H_RES,
.v_res = TEST_LCD_V_RES,
.hsync_back_porch = 50,
.hsync_front_porch = 2,
.hsync_pulse_width = 1,
.vsync_back_porch = 30,
.vsync_front_porch = 1,
.vsync_pulse_width = 1,
.flags.pclk_active_neg = 1,

.flags.hsync_idle_low = 1,
.flags.vsync_idle_low = 1,
.flags.pclk_idle_low = 1,
},
.flags.fb_in_psram = 1,
.on_frame_trans_done = notify_lvgl_ready_to_flush,
.user_ctx = &disp,
};
TEST_ESP_OK(esp_lcd_new_rgb_panel(&panel_config, &panel_handle));
TEST_ESP_OK(esp_lcd_panel_reset(panel_handle));
TEST_ESP_OK(esp_lcd_panel_init(panel_handle));
test_lvgl_task_loop(panel_handle, TEST_LCD_H_RES, TEST_LCD_V_RES, &disp); 求帮忙解惑
会不会是屏幕上的膜导致颜色有问题?把膜撕了呢?

fan183579
Posts: 81
Joined: Thu Nov 25, 2021 6:37 am

Re: S3驱动RGB屏出现颜色问题

Postby fan183579 » Tue Dec 07, 2021 7:15 am

jr-test wrote:
Tue Dec 07, 2021 6:50 am
fan183579 wrote:
Tue Dec 07, 2021 6:04 am
gpio_config_t io_conf = {};
io_conf.intr_type = GPIO_INTR_DISABLE;
io_conf.mode = GPIO_MODE_OUTPUT;
io_conf.pin_bit_mask = GPIO_OUTPUT_PIN_SEL;
io_conf.pull_down_en = 0;
io_conf.pull_up_en = 0;
gpio_config(&io_conf);
gpio_set_level(GPIO_LOW_NUM1, 0);
gpio_set_level(GPIO_LOW_NUM2, 0);
gpio_set_level(GPIO_LOW_NUM3, 0);
gpio_set_level(GPIO_LOW_NUM4, 0);
gpio_set_level(GPIO_LOW_NUM5, 0);
gpio_set_level(GPIO_LOW_NUM6, 0);
gpio_set_level(GPIO_LOW_NUM7, 0);
gpio_set_level(GPIO_LOW_NUM8, 0);
gpio_set_level(TEST_LCD_DISP_EN_GPIO, 1);

lv_disp_t *disp = NULL;
lv_init();

esp_lcd_panel_handle_t panel_handle = NULL;
esp_lcd_rgb_panel_config_t panel_config = {
.data_width = 16,
.disp_gpio_num = -1,
.pclk_gpio_num = TEST_LCD_PCLK_GPIO,
.vsync_gpio_num = TEST_LCD_VSYNC_GPIO,
.hsync_gpio_num = TEST_LCD_HSYNC_GPIO,
.de_gpio_num = TEST_LCD_DE_GPIO,
.data_gpio_nums = {
TEST_LCD_DATA0_GPIO,
TEST_LCD_DATA1_GPIO,
TEST_LCD_DATA2_GPIO,
TEST_LCD_DATA3_GPIO,
TEST_LCD_DATA4_GPIO,
TEST_LCD_DATA5_GPIO,
TEST_LCD_DATA6_GPIO,
TEST_LCD_DATA7_GPIO,
TEST_LCD_DATA8_GPIO,
TEST_LCD_DATA9_GPIO,
TEST_LCD_DATA10_GPIO,
TEST_LCD_DATA11_GPIO,
TEST_LCD_DATA12_GPIO,
TEST_LCD_DATA13_GPIO,
TEST_LCD_DATA14_GPIO,
TEST_LCD_DATA15_GPIO,
},
.timings = {
.pclk_hz = 15000000,
.h_res = TEST_LCD_H_RES,
.v_res = TEST_LCD_V_RES,
.hsync_back_porch = 50,
.hsync_front_porch = 2,
.hsync_pulse_width = 1,
.vsync_back_porch = 30,
.vsync_front_porch = 1,
.vsync_pulse_width = 1,
.flags.pclk_active_neg = 1,

.flags.hsync_idle_low = 1,
.flags.vsync_idle_low = 1,
.flags.pclk_idle_low = 1,
},
.flags.fb_in_psram = 1,
.on_frame_trans_done = notify_lvgl_ready_to_flush,
.user_ctx = &disp,
};
TEST_ESP_OK(esp_lcd_new_rgb_panel(&panel_config, &panel_handle));
TEST_ESP_OK(esp_lcd_panel_reset(panel_handle));
TEST_ESP_OK(esp_lcd_panel_init(panel_handle));
test_lvgl_task_loop(panel_handle, TEST_LCD_H_RES, TEST_LCD_V_RES, &disp); 求帮忙解惑
会不会是屏幕上的膜导致颜色有问题?把膜撕了呢?
尝试过了,还是一样的

jr-test
Posts: 100
Joined: Mon Aug 23, 2021 3:04 am

Re: S3驱动RGB屏出现颜色问题

Postby jr-test » Wed Dec 08, 2021 7:53 am

fan183579 wrote:
Tue Dec 07, 2021 7:15 am
jr-test wrote:
Tue Dec 07, 2021 6:50 am
fan183579 wrote:
Tue Dec 07, 2021 6:04 am
gpio_config_t io_conf = {};
io_conf.intr_type = GPIO_INTR_DISABLE;
io_conf.mode = GPIO_MODE_OUTPUT;
io_conf.pin_bit_mask = GPIO_OUTPUT_PIN_SEL;
io_conf.pull_down_en = 0;
io_conf.pull_up_en = 0;
gpio_config(&io_conf);
gpio_set_level(GPIO_LOW_NUM1, 0);
gpio_set_level(GPIO_LOW_NUM2, 0);
gpio_set_level(GPIO_LOW_NUM3, 0);
gpio_set_level(GPIO_LOW_NUM4, 0);
gpio_set_level(GPIO_LOW_NUM5, 0);
gpio_set_level(GPIO_LOW_NUM6, 0);
gpio_set_level(GPIO_LOW_NUM7, 0);
gpio_set_level(GPIO_LOW_NUM8, 0);
gpio_set_level(TEST_LCD_DISP_EN_GPIO, 1);

lv_disp_t *disp = NULL;
lv_init();

esp_lcd_panel_handle_t panel_handle = NULL;
esp_lcd_rgb_panel_config_t panel_config = {
.data_width = 16,
.disp_gpio_num = -1,
.pclk_gpio_num = TEST_LCD_PCLK_GPIO,
.vsync_gpio_num = TEST_LCD_VSYNC_GPIO,
.hsync_gpio_num = TEST_LCD_HSYNC_GPIO,
.de_gpio_num = TEST_LCD_DE_GPIO,
.data_gpio_nums = {
TEST_LCD_DATA0_GPIO,
TEST_LCD_DATA1_GPIO,
TEST_LCD_DATA2_GPIO,
TEST_LCD_DATA3_GPIO,
TEST_LCD_DATA4_GPIO,
TEST_LCD_DATA5_GPIO,
TEST_LCD_DATA6_GPIO,
TEST_LCD_DATA7_GPIO,
TEST_LCD_DATA8_GPIO,
TEST_LCD_DATA9_GPIO,
TEST_LCD_DATA10_GPIO,
TEST_LCD_DATA11_GPIO,
TEST_LCD_DATA12_GPIO,
TEST_LCD_DATA13_GPIO,
TEST_LCD_DATA14_GPIO,
TEST_LCD_DATA15_GPIO,
},
.timings = {
.pclk_hz = 15000000,
.h_res = TEST_LCD_H_RES,
.v_res = TEST_LCD_V_RES,
.hsync_back_porch = 50,
.hsync_front_porch = 2,
.hsync_pulse_width = 1,
.vsync_back_porch = 30,
.vsync_front_porch = 1,
.vsync_pulse_width = 1,
.flags.pclk_active_neg = 1,

.flags.hsync_idle_low = 1,
.flags.vsync_idle_low = 1,
.flags.pclk_idle_low = 1,
},
.flags.fb_in_psram = 1,
.on_frame_trans_done = notify_lvgl_ready_to_flush,
.user_ctx = &disp,
};
TEST_ESP_OK(esp_lcd_new_rgb_panel(&panel_config, &panel_handle));
TEST_ESP_OK(esp_lcd_panel_reset(panel_handle));
TEST_ESP_OK(esp_lcd_panel_init(panel_handle));
test_lvgl_task_loop(panel_handle, TEST_LCD_H_RES, TEST_LCD_V_RES, &disp); 求帮忙解惑
会不会是屏幕上的膜导致颜色有问题?把膜撕了呢?
尝试过了,还是一样的
那就不清楚了,还没弄过rgb接口的屏,不过接下来会弄,到时求教求教您!

fan183579
Posts: 81
Joined: Thu Nov 25, 2021 6:37 am

Re: S3驱动RGB屏出现颜色问题

Postby fan183579 » Wed Dec 08, 2021 9:43 am

:?:
jr-test wrote:
Wed Dec 08, 2021 7:53 am
fan183579 wrote:
Tue Dec 07, 2021 7:15 am
jr-test wrote:
Tue Dec 07, 2021 6:50 am

会不会是屏幕上的膜导致颜色有问题?把膜撕了呢?
尝试过了,还是一样的
那就不清楚了,还没弄过rgb接口的屏,不过接下来会弄,到时求教求教您!
:?:

jr-test
Posts: 100
Joined: Mon Aug 23, 2021 3:04 am

Re: S3驱动RGB屏出现颜色问题

Postby jr-test » Wed Dec 15, 2021 11:01 am

fan183579 wrote:
Wed Dec 08, 2021 9:43 am
:?:
jr-test wrote:
Wed Dec 08, 2021 7:53 am
fan183579 wrote:
Tue Dec 07, 2021 7:15 am


尝试过了,还是一样的
那就不清楚了,还没弄过rgb接口的屏,不过接下来会弄,到时求教求教您!
:?:
请教一下s3驱动rgb屏,你启用psram是怎么设置?

fan183579
Posts: 81
Joined: Thu Nov 25, 2021 6:37 am

Re: S3驱动RGB屏出现颜色问题

Postby fan183579 » Thu Dec 16, 2021 5:23 am

jr-test wrote:
Wed Dec 15, 2021 11:01 am
fan183579 wrote:
Wed Dec 08, 2021 9:43 am
:?:
jr-test wrote:
Wed Dec 08, 2021 7:53 am

那就不清楚了,还没弄过rgb接口的屏,不过接下来会弄,到时求教求教您!
:?:
请教一下s3驱动rgb屏,你启用psram是怎么设置?
官方的例程驱动的,必须启动PSRAM才能运行,没有深究,应该是里面底层驱动本身就是以写入PSRAM为前提,不需要单独写入的。

jr-test
Posts: 100
Joined: Mon Aug 23, 2021 3:04 am

Re: S3驱动RGB屏出现颜色问题

Postby jr-test » Thu Dec 16, 2021 7:39 am

fan183579 wrote:
Thu Dec 16, 2021 5:23 am
jr-test wrote:
Wed Dec 15, 2021 11:01 am
fan183579 wrote:
Wed Dec 08, 2021 9:43 am
:?:
:?:
请教一下s3驱动rgb屏,你启用psram是怎么设置?
官方的例程驱动的,必须启动PSRAM才能运行,没有深究,应该是里面底层驱动本身就是以写入PSRAM为前提,不需要单独写入的。
我启动了psram会报错:
W (1017) rtcinit: calibration efuse version does not match, set default version: 0

fan183579
Posts: 81
Joined: Thu Nov 25, 2021 6:37 am

Re: S3驱动RGB屏出现颜色问题

Postby fan183579 » Fri Dec 17, 2021 1:39 am

jr-test wrote:
Thu Dec 16, 2021 7:39 am
fan183579 wrote:
Thu Dec 16, 2021 5:23 am
jr-test wrote:
Wed Dec 15, 2021 11:01 am

请教一下s3驱动rgb屏,你启用psram是怎么设置?
官方的例程驱动的,必须启动PSRAM才能运行,没有深究,应该是里面底层驱动本身就是以写入PSRAM为前提,不需要单独写入的。
我启动了psram会报错:
W (1017) rtcinit: calibration efuse version does not match, set default version: 0
这是我的设置方式
Attachments
93700bf670defd4f9b684f69f5b35a2.png
93700bf670defd4f9b684f69f5b35a2.png (30.12 KiB) Viewed 21191 times

jr-test
Posts: 100
Joined: Mon Aug 23, 2021 3:04 am

Re: S3驱动RGB屏出现颜色问题

Postby jr-test » Fri Dec 17, 2021 1:53 am

fan183579 wrote:
Fri Dec 17, 2021 1:39 am
jr-test wrote:
Thu Dec 16, 2021 7:39 am
fan183579 wrote:
Thu Dec 16, 2021 5:23 am


官方的例程驱动的,必须启动PSRAM才能运行,没有深究,应该是里面底层驱动本身就是以写入PSRAM为前提,不需要单独写入的。
我启动了psram会报错:
W (1017) rtcinit: calibration efuse version does not match, set default version: 0
这是我的设置方式
我的跟你的配置是差不多的,现在报错的不影响运行,但是通过spi给rgb接口的屏初始化时不行,是3线spi。
Attachments
123.png
123.png (51.76 KiB) Viewed 21184 times

Who is online

Users browsing this forum: No registered users and 57 guests