2025-09-14 4:30 PM
I purchased the X-NUCLEO-GFX01M2 with the Nucleo-L476RG eval board.
The example project "Hello World" came with six image files (Image1.h - Image6.h).
This project built okay, and the canned images appeared correctly.
Next, I tried to use my own images instead of the canned images. The images list array must be modified to match the width and height of each new image used.
The following are problems that I encountered, or extra tasks required:
1) My images are JPG format, but Touch GFX only accepts PNG or SVG. I had to use Photoshop to convert them.
2) The images next had to be cropped and resized for the LCD display.
3) Touch GFX was next used to generate the proper image string array files for the project in place of the Image1-6.h files.
4) Even though the original "Hello World" image files were .H files, and 16-bit (word) arrays, Touch GFX generated .CPP 8-bit (byte) arrays. This also made the text files almost twice as large as a word array file (0x12, 0x34 vs. 0x1234).
5) Since my project is written in 'C', not "CPP", I had to edit the generated files from Touch GFX.
It would be very helpful if Touch GFX could input JPG files and generate the required word array .H files.
A previous project I tried could even render BMP files directly using included image library functions.
This post is more of an update request for the Touch GFX application.
Thank you!