Skip to content

esp32: allow external USER_C_MODULES from command line#96

Closed
shlomozippel wants to merge 10 commits intolvgl:masterfrom
hero-not-found:master
Closed

esp32: allow external USER_C_MODULES from command line#96
shlomozippel wants to merge 10 commits intolvgl:masterfrom
hero-not-found:master

Conversation

@shlomozippel
Copy link
Copy Markdown

Summary

The esp32 port hardcodes USER_C_MODULES to point to lv_binding_micropython and breaks the ability to pass in additional user modules via command line. This PR fixes that issue

Testing

I successfully built the esp32 port both with and without additional user modules

Copy link
Copy Markdown
Collaborator

@PGNetHun PGNetHun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for all these changes, it's super.
I have added only a few comments that need to be resolved, before merging to main.

Comment thread .gitmodules
[submodule "user_modules/lv_binding_micropython"]
path = user_modules/lv_binding_micropython
url = https://github.com/lvgl/lv_binding_micropython.git
url = https://github.com/hero-not-found/lv_binding_micropython.git
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Please change back to original LVGL binding repo
  2. Create a separate PR in binding repo with your changes, and add link to it in this PR's description field (or comment).
image

boards/ESP32_GENERIC_S3/sdkconfig.board
)

set(LV_CFLAGS -DLV_COLOR_DEPTH=16 -DLV_COLOR_16_SWAP=1)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is display-dependent code, please remove this line.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth to include HW display drivers here in this file?
Like ili9341 or xpt2046 or TWatch...
I think this file could be simplified to initialize only SDL.

@shlomozippel
Copy link
Copy Markdown
Author

Apologies - this PR was supposed to only include a single commit. I can clean up the other stuff and submit separately. Closing this PR for now and opening a new one with just the USER_C_MODULES change

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

Successfully merging this pull request may close these issues.

3 participants