Open rtek1000 opened 6 months ago
So if I understand correctly adjusting the value in the sketch works: https://github.com/Bodmer/TFT_eSPI/blob/master/examples/PNG%20Images/Flash_PNG/Flash_PNG.ino#L25
But if the image is more that 640 pixels wide the the PNGdec library must also be updated here: https://github.com/bitbank2/PNGdec/blob/master/src/PNGdec.h#L52C1-L53C44
There are 2 problems, the first is the lack of warning from the TFT_eSPI library, and as a result the uC restarts. The other is the limitation of the PNGdec library, but the library already handles this silently and decoding does not occur.
Only raise issues for problems with the library and/or provided examples. Post questions, comments and useful tips etc in the "Discussions" section.
To minimise effort to resolve issues the following should be provided as a minimum:
A description of the problem and the conditions that cause it to occur
IDE (e.g. Arduino or PlatformIO)
TFT_eSPI library version (try the latest, the problem may have been resolved!) from the Manage Libraries... menu
Board package version (e.g. 2.0.3) available from the Boards Manager... menu
Procesor, e.g RP2040, ESP32 S3 etc
TFT driver (e.g. ILI9341), a link to the vendors product web page is useful too.
Interface type (SPI or parallel)
Plus further information as appropriate to the problem:
The idea is to provide sufficient information so I can setup the exact same (or sufficiently similar) scenario to investigate and resolve the issue without having a tedious ping-pong of Q&A.
DO NOT paste code directly into the issue. To correctly format code put three ticks ( ` character on key next to "1" key) at the start and end of short pasted code segments to avoid format/markup anomolies. See here:
Example output:
Limit alert suggestion:
Serial monitor:
Serial monitor: