Skip to content

esp32: allow external USER_C_MODULES from command line #96

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

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

shlomozippel
Copy link

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
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.

@@ -70,4 +70,4 @@
url = https://github.com/arduino/arduino-lib-mpy.git
[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
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

@@ -8,3 +8,7 @@ set(SDKCONFIG_DEFAULTS
boards/sdkconfig.spiram_sx
boards/ESP32_GENERIC_S3/sdkconfig.board
)

set(LV_CFLAGS -DLV_COLOR_DEPTH=16 -DLV_COLOR_16_SWAP=1)
Copy link
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
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.

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