I wish to display PNG images from the SD card and display them like a slideshow using ESP32 WROVER E with TFT display that is 3.5inch SPI Module ILI9488 with built-in sd card module. I managed to get it to display JPEG images but not PNG. I'm asking multiple AIs and ChatGPT said...
" For ESP32 + PNG image rendering, you don’t need LodePNG unless you are doing custom decoding. It’s far easier to use Larry Bank’s optimized PNGdec, which is specifically built for embedded devices."
Is this true? Cos I went with PNGDec earlier with ChatGPT's code but it keeps giving me errors. I'm now trying with lodePNG and LVGL.
it is not a good idea to trust an AI if you don't understand the code yourself.
AI is a very useful tool for those who is able to do the work themselves but just want save the time. If you can't program yourself - AI most likely won't help you.
In your case, I would try to start by studying PNGDec usage examples and trying to write the code yourself, without AI
Well AI can help you to an extent, like rebuild code, you shouldn't fully trust it... Like b707 said. I'm not exactly sure how you can get a PNG file on an esp32, You could decode it into RGB, lower the resolution, and convert the RGB into a 565 format, so you can put it in an array. (note, PROGMEM isn't necessary on an esp32, but you must use const) But I don't believe I know how to... Edit: I'm blind, can't read "SD"