Skip to content

Commit

Permalink
Fix #5
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Dec 18, 2023
1 parent b4c0061 commit 4adf278
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/TFT_eSPI_Sprite/TFT_eSPI_Sprite.ino
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ void setup()

void loop()
{
spr.pushImage(0, 0, WIDTH, HEIGHT, (uint16_t *)gImage_true_color);
size_t examples_image_size = sizeof(gImage_true_color) / sizeof(gImage_true_color[0]);
if (examples_image_size == (WIDTH * HEIGHT * sizeof(uint16_t))) {
spr.pushImage(0, 0, WIDTH, HEIGHT, (uint16_t *)gImage_true_color);
}

amoled.pushColors(0, 0, WIDTH, HEIGHT, (uint16_t *)spr.getPointer());
delay(2000);

Expand Down

0 comments on commit 4adf278

Please sign in to comment.