Closed markbirss closed 3 years ago
There is a script have you checked out the image converter variant?
yes i have this one for example https://javl.github.io/image2cpp/
but i get the same picture displayed smaller 4 times next each other?
No need copy the file you want .jpg into a folder and copy imgconvert then run it using g the example provided imgconvert source.ext destination.ext then copy the resultant .h file to your sketch
On Windows PC install Python 3.91 or later, find it here: https://www.python.org/downloads/
Install Python
Create an accessible folder e.g. EPD47 e.g. C:\EPD47 ***Note this folder must be accessible to the cmd pompt A better location might be in your Documents folder usually located at C\Your-Username\Documents, example: Directory of C:\Users\david\EPD47
Copy your source .JPG images to the folder
Transfer the following files to your EPD47 folder - imgconvert.py and fontconvert.py they are located in the EDP47 Library script folder
Install Python 3.91, start a Windows cmd prompt, and chage directory to the folder EPD47: cd C:\Users\david\EPD47
To create an image for display, enter this at the command prompt: imgconvert.py -i sourceimagename.jpg - n requiredname -o outputfile.h
Example convert sunny.jpg to sunny.h imgconvert.py -n sunny -i sunny.jpg -o sunny.h
The image file is now created, include the file in your code like this #include "sunny.h"
I dont use Windows
but i see it on this page thanks
https://github.com/Xinyuan-LilyGO/LilyGo-EPD47/blob/master/scripts/README.MD
For the examples what was used to create the .h files Howto convert jpg to .h ?