Xinyuan-LilyGO / T-Dongle-S3

An ESP32S3 development board that can freely use WIFI, BLE, TF, LED, TFT_LCD functions.
MIT License
121 stars 39 forks source link

converting image to byte array #17

Open chaabanihoussem opened 10 months ago

chaabanihoussem commented 10 months ago

Hi

this is not an issue, it's a question since I couldn't find the tool

what tool was used to convert an image to this array here:

T-Dongle-S3/example/Factory /logo.h

Thanks

lewisxhe commented 9 months ago

https://github.com/Xinyuan-LilyGO/T-Display-S3/tree/main/tools

TsKyrk commented 3 months ago

Thank you @lewisxhe for the tool.

After many trials I found out that the process to push images on the T-dongle-S3 device is this :

1) Use MS Paint to save your image into Bitmap 24bits format (.bmp).

Then, for example, the TFT.ino example project can be modified to add the image file to the headers and to add a new case item diplaying this new image: case N: tft.pushImage(0, 0, 160, 80, (uint16_t *)gImage_yourimage); break;