Add support for 4bits pushToSprite, pushRotated #1954
Replies: 3 comments 2 replies
-
pushToSprite already handles copying a 4 bit sprite into another sprite. So this should work:
pushRotated only handles 8 bit and 16 bit sprite to sprite copying. I will add to the todo list but I have little time at the moemnt to work on additions. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I came up to a different approach and i now work in full 16bits. So i came up with a method that consist of allocationg only a portion of the screen and redrawing everyting for each portions of the full screen and it keep my memory usage relatively low.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
When using 4bits colorDepth on eTFT_Sprite, the pushToSprite and pushRotate(&sprite,..) are not working.
I spent one night figuring why it was working in 8bits/16bits and not in 4bits.
TFT_eSPI/Extensions/Sprite.cpp
Line 1110 in cc9787d
on Arduino IDE with latest library on a DOIT ESP32 Devboard and the 2" 320x240 ST7789 SPI TFT.
bitmap.zip
Beta Was this translation helpful? Give feedback.
All reactions