ESP32P4 #597
Replies: 2 comments 4 replies
-
|
I recently used LovyanGFX on my ESP32-P4 project porting WLED-MM to WLED-MM-P4. More details and some videos here: https://www.reddit.com/r/WLED/s/MKY6DCTdcs This basically uses Sprites with my own defined P4 screens to draw with the Pixel Processing Accelerator. I make RGB888 framebuffers in LovyanGFX and then the PPA "Scale Rotate Mirror" operation to composite them into my layout. The only modification I made was to tell it to add MALLOC_CAPS_DMA and MALLOC_CAPS_CACHE_ALIGNED for the PSRAM allocator to make it go a bit faster on the P4 as you can have DMA PSRAM on the P4. Not strictly needed but worked better with these options. Otherwise no changes to the code, it just worked. I have the Info Bar and the Button Bar as separate sprites and paint them as required. |
Beta Was this translation helpful? Give feedback.
-
|
Yes. I'm using esp_lcd_dpi_panel to control my displays. The general code pattern: And the modification for library for the P4 to be faster was to add these two MALLOC_CAP options for the P4:
like:
And really that's all I needed! |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For anyone feeling adventurous, there's a special branch with basic SPI/I2C support for ESP32P4:
https://github.com/lovyan03/LovyanGFX/tree/esp32p4edit: now merged to the develop branch
Beta Was this translation helpful? Give feedback.
All reactions