Xinyuan-LilyGO / LilyGo-AMOLED-Series

LilyGo AMOLED Series
MIT License
88 stars 14 forks source link

TFT_eSprite example fails for 2.4 inch board #5

Closed scuba-hacker closed 5 months ago

scuba-hacker commented 5 months ago

gImage_true_color isn't a large enough array to represent all pixels for the 450 x 600 screen, so subsequently when the array is passed to spr.pushImage in line 89 with the WIDTH and HEIGHT of the board there is a crash and restart.

There needs to be either an alternative array for the 2.4 inch board or, as I did, the code for showing the image needs disabling for this board.

lewisxhe commented 5 months ago

oh ! Yes . The initial example is provided for use with 1.47. It will be compatible with several other models later, which may cause errors. Thank you for your feedback.

scuba-hacker commented 5 months ago

You’re welcome.