TFT LCD library .cpp Program error

Hello All,

I am new to working with the shield. I have 2.8 TFT Shield.
I downloaded this library here: GitHub - adafruit/TFTLCD-Library: Arduino library for 8-bit TFT LCDs such as ILI9325, ILI9328, etc
I am using Arduino Uno with the lasted IDE version.

here is the error I get when I try to run the example code graphicstest:

Arduino/libraries/Adafruit_TFTLCD/Adafruit_TFTLCD.cpp:115:5: error: 'textsize' was not declared in this scope
textsize = 0;
^
exit status 1
Error compiling for board Arduino/Genuino Uno.

I have the GFX lib installed and the TFT touchscreen as well..
Please help I have looked at the cpp code and it make sense

Please post your code that is generating this error

sorry, I have attached the.cpp file as well as the Arduino example code i got from the library

graphicstest.pde (10.5 KB)

Adafruit_TFTLCD.cpp (28.2 KB)

The 1.5.4 release of the Adafruit_GFX broke compatibility with the Adafruit_TFTLCD library. You'll need to roll back to Adafruit_GFX 1.5.3:

  • Sketch > Include Library > Manage Libraries
  • Wait for the download to finish
  • In the "Filter your search..." box, type "adafruit_gfx".
  • Press Enter.
  • From the search results, click on "Adafruit GFX Library by Adafruit".
  • From the dropdown version menu, select 1.5.3.
  • Click the "Install" button.
  • Wait for the installation to finish.
  • Click the "Close" button.

After that, the sketch should compile.

If you have updatable library notifications enabled in the Arduino IDE, it will occasionally prompt you to update your Adafruit_GFX library to the new version. You will need to refrain from doing so, otherwise you'll be back to the same compilation error again when you use the Adafruit_TFTLCD library.