From 51cd0733e7cb3a3f12add5cac90a780972456fae Mon Sep 17 00:00:00 2001 From: sonictl Date: Mon, 16 May 2022 11:29:31 +0800 Subject: [PATCH] Update panda_png.h I spent much time for searching for [png to C array] tool. Finally found in you jpeg example. I hope to add the web tool url here. --- examples/PNG Images/Flash_PNG/panda_png.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/examples/PNG Images/Flash_PNG/panda_png.h b/examples/PNG Images/Flash_PNG/panda_png.h index e0d2b7b..a52d802 100644 --- a/examples/PNG Images/Flash_PNG/panda_png.h +++ b/examples/PNG Images/Flash_PNG/panda_png.h @@ -1,3 +1,21 @@ +/* Create C arrays from jpeg images using this online tool: + http://tomeko.net/online_tools/file_to_hex.php?lang=en + If needed, first resize and crop to an appropriate width and height + to suit your display with an image editing program such as GIMP, IrfanView. + + You can also change the image "quality" to reduce the file size. + + Paste the array into a new tab, top and tail the array from the + tool to look like the one below with: + #include + const uint8_t img_name[] PROGMEM = { //start with thisline + // 8bit array contents + + }; // end with this line + + No forget to change the name of the array 'img_name' +*/ + #include const uint8_t panda_png[] PROGMEM = { 0x89, 0x50, 0x4E, 0x47, 0x0D, 0x0A, 0x1A, 0x0A, 0x00, 0x00, 0x00, 0x0D, 0x49, 0x48, 0x44, 0x52,