Thank you for your reply. Yes, I did stumble upon the bin2code.py script you mention. The issue is that it doesn't convert the image to raw pixel data (usable by M5EPD_Driver::WriteFullGram4bpp
).
After a bit more research, I found a preliminary command using ImageMagik to convert an image to raw pixel data for the M5EPD: convert input.png -depth 4 -negate output.gray
Then convert the raw data to C with bin2code.py : ./bin2code.py output.gray
The result can then be appended to ImageResource.h