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

Error setting LV_COLOR_DEPTH_1 when trying to use LVGL v9 (BSP-606) #464

Open
1 task done
abouatef opened this issue Dec 30, 2024 · 2 comments
Open
1 task done
Labels
Area: LVGL related to LVGL and LVGL port Type: Bug Something isn't working

Comments

@abouatef
Copy link

Board

ESP32 Wroom

Hardware Description

SSD1306

IDE Name

ESP-IDF extension for VSCode

Operating System

windows 11

Description

Hi,

Trying to run the i1c_oled example I get the following error when using LVGL v9.2.2
#error please disable LV_COLOR_DEPTH_1 for using monochromatic screen

And if I remove the LV_COLOR_DEPTH_1 config then the display uses 16-bit by default and doesn't work properly

Sketch

i1c_oled example

Other Steps to Reproduce

No response

I have checked existing issues, README.md and ESP32 Forum

  • I confirm I have checked existing issues, online documentation and Troubleshooting guide.
@abouatef abouatef added Status: Awaiting triage Type: Bug Something isn't working labels Dec 30, 2024
@github-actions github-actions bot changed the title Error setting LV_COLOR_DEPTH_1 when trying to use LVGL v9 Error setting LV_COLOR_DEPTH_1 when trying to use LVGL v9 (BSP-606) Dec 30, 2024
@espzav
Copy link
Collaborator

espzav commented Jan 3, 2025

Hello @abouatef, the LVGL port not support LV_COLOR_DEPTH_1 option with LVGL9. Instead of this, you can change color format to LV_COLOR_FORMAT_I1 here:


The example should work with both color formats.

Please, don't forget remove these files and folder before build (if you compiled for LVGL8 before):

  • build/
  • managed_components/
  • dependencies.lock
  • sdkconfig
  • sdkconfig.defaults

@espzav espzav added Area: LVGL related to LVGL and LVGL port and removed Status: Awaiting triage labels Jan 3, 2025
@suda-morris
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: LVGL related to LVGL and LVGL port Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants