-
Notifications
You must be signed in to change notification settings - Fork 285
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
ESP32-S3 support | ILI9488 is working perfectly | esp-idf v4 and v5 compatible #227
base: master
Are you sure you want to change the base?
Conversation
…to-dma by default for all esp devices | ESP32-S3 support added | updated to be compatible with esp-idf =< 4 and >= 5 versions
Tried your branch with my esp32s3 and ili9488 3.5inch display... but found the displaying color is not normal. Tried updating the gamma related driver init commands to the original ones, then the problem is fixed. the init commands in your branch: the original commands: |
Tks for the feedback. It's interesting, my ili9488 display with original gamma parameters can only display red, green and blue colors correctly. Colors like purple, pink and other ones is always in gray scale. I'll try to send a picture. |
@VitorAlho , btw, this is what it looks like using your updated driver on my display. |
I`m thinking about use Kconfig to include 2 versions of gamma parameters and you choose one that fits your ili9488 display |
Found a similar issue about 9488, prenticedavid/MCUFRIEND_kbv#40 |
The craziest thing is... How could we identify different versions? |
Maybe I can do some test next week if you can share your sdkconfig. @VitorAlho |
I`m thinking about put it inside lvgl_tft/Kconfig if the selected display was ili9488 @zbpan-sh |
I'm not sure if doing that way fits the design philosophy of the lvgl_esp32_drivers project... |
About sdk config, here it is. I need to rename with ".txt" because github needs. Thank you for your help |
Hi, @VitorAlho, I have tried to use your lvgl configurations in your sdkconfig on my device, it ends up with the same behavior as tested before. Now I think it makes sense for add an option for the ili9488 driver to support two kinds of "gamma correction" settings, since I found there are already similar solutions for other tft drivers. Btw. There is another pull request #223 from @hiruna, working on supporting IDF5 and LVGL8.3. Hope you guys can work together to merge your changes. |
#define DMA_MAX_BIT_LENGHT (1<<24) // according with SPI_LL_DMA_MAX_BIT_LEN in spi_ll.h | ||
#endif | ||
|
||
#define TFT_DISPLAY_BUFFER_SIZE_OVERFLOW_PROTECTION ((TFT_DISPLAY_BUFFER_SIZE_IN_BITS>DMA_MAX_BIT_LENGHT)? (((DMA_MAX_BIT_LENGHT-1000)/8)/3) :TFT_DISPLAY_BUFFER_SIZE) |
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.
I don't like this approach here. We can always break one larger buffer into multiple DMA requests. Limit the DISP_BUF_SIZE is not the best option. In SPI code, we can break one request into multiple without every driver to handle it.
Fix ILI9488 init function
Fix little ILI9488 display artifacts
Auto-dma by default for all esp devices
ESP32-S3 support added
Updated to be compatible with esp-idf =< 4 and >= 5 versions