PaulStoffregen / ILI9341_t3

Optimized ILI9341 TFT Library
http://pjrc.com/store/display_ili9341.html
242 stars 95 forks source link

spitftbitmap.ino Drawing at 0,0 #47

Open Cosford opened 7 years ago

Cosford commented 7 years ago

This bitmap drawing example always draws at 0, 0 regardless of the x and y setting. I believe this is due to the following line: tft.writeRect(0, row, w, 1, awColors);

By altering this to tft.writeRect(x, row+y, w, 1, awColors);

The bitmap is drawn correctly to the desired location in the screen.