diff --git a/Extensions/Sprite.cpp b/Extensions/Sprite.cpp index 6ec481c..f63d3fa 100644 --- a/Extensions/Sprite.cpp +++ b/Extensions/Sprite.cpp @@ -112,6 +112,16 @@ void* TFT_eSprite::createSprite(int16_t w, int16_t h, uint8_t frames) } +/*************************************************************************************** +** Function name: created +** Description: Returns true is sprite has been created +*************************************************************************************x*/ +bool TFT_eSprite::created(void) +{ + return _created; +} + + /*************************************************************************************** ** Function name: ~TFT_eSprite ** Description: Class destructor diff --git a/Extensions/Sprite.h b/Extensions/Sprite.h index 26a0457..ab4f1c1 100644 --- a/Extensions/Sprite.h +++ b/Extensions/Sprite.h @@ -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); diff --git a/TFT_eSPI.h b/TFT_eSPI.h index 3d4d233..b1cc8dc 100644 --- a/TFT_eSPI.h +++ b/TFT_eSPI.h @@ -16,7 +16,7 @@ #ifndef _TFT_eSPIH_ #define _TFT_eSPIH_ -#define TFT_ESPI_VERSION "2.2.13" +#define TFT_ESPI_VERSION "2.2.14" /*************************************************************************************** ** Section 1: Load required header files diff --git a/examples/320 x 240/TFT_Matrix/TFT_Matrix.ino b/examples/320 x 240/TFT_Matrix/TFT_Matrix.ino index 2e2e449..838ce79 100644 --- a/examples/320 x 240/TFT_Matrix/TFT_Matrix.ino +++ b/examples/320 x 240/TFT_Matrix/TFT_Matrix.ino @@ -32,7 +32,7 @@ void setup() { Serial.begin(115200); randomSeed(analogRead(A0)); tft.init(); - tft.setRotation(2); + tft.setRotation(0); tft.fillScreen(ILI9341_BLACK); setupScrollArea(TOP_FIXED_AREA, BOT_FIXED_AREA); } diff --git a/examples/DMA test/SpriteRotatingCube/SpriteRotatingCube.ino b/examples/DMA test/SpriteRotatingCube/SpriteRotatingCube.ino index 07f4831..30f46b3 100644 --- a/examples/DMA test/SpriteRotatingCube/SpriteRotatingCube.ino +++ b/examples/DMA test/SpriteRotatingCube/SpriteRotatingCube.ino @@ -6,7 +6,7 @@ // parallel TFT's (tested with ILI9341 and ILI9481) // The sketch will run on processors without DMA and also parallel -// interface TFT's. Comment out line 25 for no DMA. +// interface TFT's. Comment out line 29 for no DMA. // Library here: // https://github.com/Bodmer/TFT_eSPI diff --git a/examples/Smooth Fonts/FLASH_Array/Unicode_test/Unicode_test.ino b/examples/Smooth Fonts/FLASH_Array/Unicode_test/Unicode_test.ino index 899ab74..a8f6bea 100644 --- a/examples/Smooth Fonts/FLASH_Array/Unicode_test/Unicode_test.ino +++ b/examples/Smooth Fonts/FLASH_Array/Unicode_test/Unicode_test.ino @@ -31,7 +31,6 @@ //==================================================================================== // Libraries //==================================================================================== -// Call up the SPIFFS FLASH filing system this is part of the ESP Core #include // Hardware-specific library diff --git a/library.json b/library.json index 1e47018..2e2f798 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "TFT_eSPI", - "version": "2.2.13", + "version": "2.2.14", "keywords": "Arduino, tft, ePaper, display, STM32, ESP8266, NodeMCU, ESP32, M5Stack, ILI9341, ST7735, ILI9163, S6D02A1, ILI9486, ST7789, RM68140", "description": "A TFT and ePaper SPI graphics library with optimisation for ESP8266, ESP32 and STM32", "repository": diff --git a/library.properties b/library.properties index d51d0a5..1470ff7 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=TFT_eSPI -version=2.2.13 +version=2.2.14 author=Bodmer maintainer=Bodmer sentence=TFT graphics library for Arduino processors with performance optimisation for STM32, ESP8266 and ESP32