Hello,
I am facing the same issue and not able to display the images on to the M5 Paper. I have tried both canvas.drawPngFile(SPIFFS, "/smiley.png", 0, 0);
and canvas.drawJpgFile(SPIFFS, "/smiley.jpg", 0, 0);
but no luck.
I already included #include "SPIFFS.h"
and initialized SPIFF using M5.begin(true, true, true, true, false);
. The png and jpg files are inside the data
folder. SPIFFS.open("/smiley.png")
is able to open the file however it is not printing any file content on the console.
I think it is required to format the SPIFFS for the first time, as mentioned here so I followed these steps but ESP32 Sketch data upload is not appearing in arduino 2.0.
However I am able to display the png image using canvas.drawPngUrl("http://imageUrl");
but it is taking more time and quite slow.
Could you please help me in understanding what I am doing wrong?
@simonm @felmue