-
Notifications
You must be signed in to change notification settings - Fork 171
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
Use driver as submodule #8
Comments
@amirgon Lots of our existing projects use only one driver from Examples: |
@embeddedt How does it work for eclipse users who compile all C files under subfolders? (as we discussed here) |
@amirgon All of the drivers have an |
The So I also suggest using individual drivers which can be shaped to your system. The drivers in |
@kisvegabor I thought for the long term it makes more sense to use a submodule for drivers, which can be shared among lvgl projects and applications. If each repo keeps its own drivers, it would become harder to maintain a driver. You would have to update it in multiple repos. I'm currently testing with the unix drivers. Do you suggest copying the unix drivers to I'm going to add ILI9431 for ESP32 based on your If we decide to use drivers from |
Actually, that's why I suggested copying the driver. As these are drivers for displays and input devices and independent from the host MCU it's difficult to make so flexible to support all the good stuff of a toolchain, MCU (DMA) or language (C, C++, Python). It's true that if we copy the drivers their maintenance would be harder. However, as the drivers are usually customized they need to maintained only in there own place. So IMO it would be a too big effort for a small gain. |
@kisvegabor I'm using the exact same driver for unix in lv_micropython/unix. The "glue" doesn't change anything inside it, just provides a way to call it from Micropython.
Ok, so let's keep it that way for now. |
Today
lv_binding_micropython
contains driver code such asSDL_monitor.c
andSDL_mouse.c
.However, similar code exists on
lv_drivers
repo as well, which seems to do the same thing (SDL initialization and registration, for example).I wonder if it would be a good idea to have
lv_drivers
as a git submodule oflv_binding_micropython
.lv_drivers
andlv_binding_micropython/driver
lv_drivers
are packaged together in one repo. A Micropython user will only be interested in a few drivers from there, so there will be some redundant code from his point of view.@kisvegabor What do you think?
The text was updated successfully, but these errors were encountered: