-
Notifications
You must be signed in to change notification settings - Fork 299
Feature/esp32c3 support #69
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
Conversation
@kisvegabor touch_driver got an update for LVGLv8, do you think we need any other update for that for this particular PR? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good in general, only a few comments above.
On a general note, for v8 instead of adding #if LVGL_VERSION_MAJOR >= 8
I started to keep only v8 stuff because people who use v7 can use the release/v7 branch.
I'm not sure how well could it work here as the goal is to have as many drivers for as many releases as possible. So if someone adds a driver to v8 maybe the preprocessor instructions are the best way to backport them to v7. Anyway, I just wanted to mention my new approach in the hope it can help here in some form 🙂
I see, I also wanted to keep a branch for drivers v7 and another for v8, but I don't know how much effort would it take to keep both in sync, as far as I've seen the differences are the indev return value of the read function is now |
Rotation is also available in 7.11. |
So the return type of indev read is the only change? Drivers wise. See my comment in the review, this might help. |
I believe that and the requirement for drivers to be |
And in display driver there are some renames: |
Ok, will do the initial changes for v8 on this driver, some of the changes are necessary in |
I guess this driver is complete, waiting for @dastarling for feedback, will work on v8 support for display drivers on another PR |
Thanks for all the work. I'll give it a check soon. I think I am still on v7, was thinking of updating to v8, but there were some differences I wasn't prepared to go thru at the time. I'll try to test it at v7 and see if I can then update to v8 and test again. |
v7 is fine, support for v8 will take some work. Thanks for the help :), there's also a new PR to handle better I2C (#70 ), but it's not merged just yet. |
@kisvegabor @embeddedt Think we need to merge this, some new PRs are replicating some fixes available here, what do you think? |
Sure! |
I tested Master and it builds and runs with lvgl v7.11.0. But the ili9488.c file does not include some changes I made to the flush function due to the limited memory of the C3. So the graphics output is banded on the screen with Resolution 480x320. |
The ESP32C3 displays this message in the terminal indicating the lack of memory for a full screen DMA transfer at the 480x320 resolution
|
Should I open a separate case for the lack of memory? |
I also found a few other minor issues; lvgl_esp32_drivers\lvgl_tft\Kconfig: 828 lvgl_esp32_drivers\lvgl_tft\Kconfig: 840 lvgl_esp32_drivers\lvgl_touch\Kconfig:139 |
@dastarling Could you take a look at this and test it when you have time?
Fixes lvgl/lv_port_esp32#269