Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

提交一个 esp-sparkbot 小坦克屏幕的反色问题 #214

Open
dancemanUK opened this issue Feb 21, 2025 · 3 comments
Open

提交一个 esp-sparkbot 小坦克屏幕的反色问题 #214

dancemanUK opened this issue Feb 21, 2025 · 3 comments

Comments

@dancemanUK
Copy link

在 esp_sparkbot_board.cc 代码里,第114行

    esp_lcd_panel_invert_color(panel, false);   

这里的反色为: false; 效果如下图

Image

将 esp_lcd_panel_invert_color(panel, true);
才能正常显示

@78
Copy link
Owner

78 commented Feb 21, 2025

OK. Next time, please submit a pull request to address this issue.

@78 78 closed this as completed Feb 21, 2025
@78 78 reopened this Feb 21, 2025
@78
Copy link
Owner

78 commented Feb 21, 2025

Reopen again.

尝试把 rgb_ele_order 改为 BGR,能否修复你的问题。

@dancemanUK
Copy link
Author

Reopen again.

尝试把 rgb_ele_order 改为 BGR,能否修复你的问题。

虾哥,这个是ST7789的240X240的屏。LCD_RGB_ELEMENT_ORDER_RGB; 这里没有问题,
只要esp_lcd_panel_invert_color(panel, true); 就能正常白底黑色,和显示黄色的图标。

原代码提交者,可能是要黑底白字,又不想去修改。lcd_display.cc 里的LVGL代码,就直接改 esp_lcd_panel_invert_color(panel, false);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants