Skip to content

Commit

Permalink
TFT_eSPI example removes V3.0 limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Oct 5, 2024
1 parent 9d88185 commit ab82aca
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 94 deletions.
19 changes: 0 additions & 19 deletions examples/TFT_eSPI_Sprite/TFT_eSPI_Sprite.ino
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@



#include "esp_arduino_version.h"
#if ESP_ARDUINO_VERSION < ESP_ARDUINO_VERSION_VAL(3,0,0)
#include <LilyGo_AMOLED.h> //To use LilyGo AMOLED series screens, please include <LilyGo_AMOLED.h>
#include <TFT_eSPI.h> //https://github.com/Bodmer/TFT_eSPI
#include "true_color.h"
Expand Down Expand Up @@ -256,20 +254,3 @@ unsigned int rainbow(uint8_t value)

return red << 11 | green << 6 | blue;
}

#else

#include <Arduino.h>

void setup()
{
Serial.begin(115200);
}

void loop()
{
Serial.println("The current arduino version of TFT_eSPI does not support arduino 3.0, please change the version to below 3.0");
delay(1000);
}

#endif
18 changes: 0 additions & 18 deletions examples/TFT_eSPI_Sprite_ArcFill/TFT_eSPI_Sprite_ArcFill.ino
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
* 3. Use TFT_eSPI Sprite made by framebuffer , unnecessary calling during use tft.xxxx function
*
* */
#include "esp_arduino_version.h"
#if ESP_ARDUINO_VERSION < ESP_ARDUINO_VERSION_VAL(3,0,0)
#include <LilyGo_AMOLED.h>
#include <LV_Helper.h>
#include <TFT_eSPI.h> //https://github.com/Bodmer/TFT_eSPI
Expand Down Expand Up @@ -209,20 +207,4 @@ unsigned int rainbow(uint8_t value)
return red << 11 | green << 5 | blue;
}

#else

#include <Arduino.h>

void setup()
{
Serial.begin(115200);
}

void loop()
{
Serial.println("The current arduino version of TFT_eSPI does not support arduino 3.0, please change the version to below 3.0");
delay(1000);
}

#endif

19 changes: 0 additions & 19 deletions examples/TFT_eSPI_Sprite_RLE_Font/TFT_eSPI_Sprite_RLE_Font.ino
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
* resolution of TFT_eSPI. Do not change it here. Use fillRect.
* 3. Use TFT_eSPI Sprite made by framebuffer , unnecessary calling during use tft.xxxx function
*/
#include "esp_arduino_version.h"
#if ESP_ARDUINO_VERSION < ESP_ARDUINO_VERSION_VAL(3,0,0)
#include <LilyGo_AMOLED.h>
#include <LV_Helper.h>
#include <TFT_eSPI.h> //https://github.com/Bodmer/TFT_eSPI
Expand Down Expand Up @@ -299,20 +297,3 @@ void loop()

delay(4000);;
}

#else

#include <Arduino.h>

void setup()
{
Serial.begin(115200);
}

void loop()
{
Serial.println("The current arduino version of TFT_eSPI does not support arduino 3.0, please change the version to below 3.0");
delay(1000);
}

#endif
19 changes: 0 additions & 19 deletions examples/TFT_eSPI_Sprite_Rotation/TFT_eSPI_Sprite_Rotation.ino
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
* @note Screen rotation only supports 2.41 Inch or 1.91-inch touch and non-touch versions
* @note Screen rotation only supports 2.41 Inch or 1.91-inch touch and non-touch versions
*/
#include "esp_arduino_version.h"
#if ESP_ARDUINO_VERSION < ESP_ARDUINO_VERSION_VAL(3,0,0)
#include <LilyGo_AMOLED.h>
#include <LV_Helper.h>
#include <TFT_eSPI.h> //https://github.com/Bodmer/TFT_eSPI
Expand Down Expand Up @@ -75,20 +73,3 @@ void loop()
spr.setSwapBytes(1);
}


#else

#include <Arduino.h>

void setup()
{
Serial.begin(115200);
}

void loop()
{
Serial.println("The current arduino version of TFT_eSPI does not support arduino 3.0, please change the version to below 3.0");
delay(1000);
}

#endif
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
* resolution of TFT_eSPI. Do not change it here. Use fillRect.
* 3. Use TFT_eSPI Sprite made by framebuffer , unnecessary calling during use framebuffers.xxxx function
*/
#include "esp_arduino_version.h"
#if ESP_ARDUINO_VERSION < ESP_ARDUINO_VERSION_VAL(3,0,0)
#include <LilyGo_AMOLED.h>
#include <LV_Helper.h>
#include <TFT_eSPI.h> //https://github.com/Bodmer/TFT_eSPI
Expand Down Expand Up @@ -398,20 +396,3 @@ void mediabuttons()
amoled.pushColors(0, 0, amoled.width(), amoled.height(), (uint16_t *)framebuffers.getPointer());

}

#else

#include <Arduino.h>

void setup()
{
Serial.begin(115200);
}

void loop()
{
Serial.println("The current arduino version of TFT_eSPI does not support arduino 3.0, please change the version to below 3.0");
delay(1000);
}

#endif

0 comments on commit ab82aca

Please sign in to comment.