#682 Add created() function for sprites
New function added:
bool created(void);
to check if sprite has been rotated. Example:
if ( !spr.created() ) Serial.println("Sprite has not been created");
This commit is contained in:
1 parent
8fc52dc1f5
commit
a6d50ea5ef
8 files changed
+18
-6
No files matched your search
@@ -22,6 +22,9 @@ class TFT_eSprite : public TFT_eSPI {
|
||||
|
||||
void* createSprite(int16_t width, int16_t height, uint8_t frames = 1);
|
||||
|
||||
// Returns true if sprite has been created
|
||||
bool created(void);
|
||||
|
||||
// Delete the sprite to free up the RAM
|
||||
void deleteSprite(void);
|
||||
|
||||
|
||||
Reference in new issue
Block a user