Esp32-s3 sudden compile error

I have been working on a project using this board : "Amazon.com" and using TFT_eSPI. Everything has been working fine until i tryed to add wifi. I started using the following includes:
#include <WiFi.h>
#include <WebServer.h>
#include <WebSocketsServer.h>
#include <ArduinoJson.h>

This lead to an error that lead to me uninstalling Arduino, deleting the Arduino 15 folder (C:\Users\david\AppData\Local\Arduino15), and reinstalling Arduino.

This solved the WIFI issue but now TFT is not compiling. I tried going back through all of the setup steps found in this document for arduino: GitHub - Xinyuan-LilyGO/T-Display-S3

I went back to using an example project to see if there was somthing wrong with my code however the example gives the exact same error message wihle trying to compile.

This is the code:



#include "TFT_eSPI.h"
#include "install.h"

TFT_eSPI tft= TFT_eSPI();
TFT_eSprite sprite = TFT_eSprite(&tft);

void setup() {
  tft.init();
  tft.setRotation(1);
  tft.setSwapBytes(true);
  tft.fillScreen(TFT_WHITE);
  tft.pushImage(106, 0, 214, 170, install);

  sprite.createSprite(146,170);
 
  sprite.setTextColor(TFT_BLACK,TFT_WHITE);
  sprite.setTextDatum(4);
}

//progress bar variables
int progress=0;
int w=120;
int h=18;
int x=12;
int y=90;
int blocks=0;

void loop() {
 sprite.fillSprite(TFT_WHITE);
 sprite.setFreeFont(&Orbitron_Light_24);
 sprite.drawString("Progress:",75,16);
 sprite.setFreeFont(&Orbitron_Light_32);

 

 sprite.drawString(String(progress)+"%",75,54);

 progress++;
 if(progress==101)
 progress=0;

  blocks =progress/5;
 sprite.drawRoundRect(x,y,w,h,3,TFT_BLACK);
 for(int i=0;i<blocks;i++)
 sprite.fillRect(i*5+(x+2)+(i*1),y+4,5,10,TFT_BLACK);
 sprite.drawRect(10,124,60,22,TFT_BLACK);
 sprite.drawRect(76,124,60,22,TFT_BLACK);
 sprite.drawString("OK",40,134,2);
 sprite.drawString("CANCEL",106,134,2);
 sprite.setTextFont(0);
 sprite.drawString("Installation almost done!!",80,160);
 sprite.pushSprite(0,0);
delay(60);
}

This is the error:

In file included from c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.h:94,
                 from c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:16:
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c: In member function 'uint8_t TFT_eSPI::readByte()':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:466:20: error: 'GPIO' was not declared in this scope
  466 |       #define RD_L GPIO.out_w1tc = (1 << TFT_RD)
      |                    ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c:98:3: note: in expansion of macro 'RD_L'
   98 |   RD_L;
      |   ^~~~
In file included from c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:20:
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c:100:9: error: 'gpio_input_get' was not declared in this scope; did you mean 'gpio_num_t'?
  100 |   reg = gpio_input_get(); // Read three times to allow for bus access time
      |         ^~~~~~~~~~~~~~
      |         gpio_num_t
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c: In member function 'void TFT_eSPI::pushBlock(uint16_t, uint32_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c:547:5: note: in expansion of macro 'tft_Write_16'
  547 |     tft_Write_16(color);
      |     ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c:558:23: note: in expansion of macro 'tft_Write_16'
  558 |   else while (len--) {tft_Write_16(color);}
      |                       ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c: In member function 'void TFT_eSPI::pushSwapBytePixels(const void*, uint32_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c:568:20: note: in expansion of macro 'tft_Write_16'
  568 |   while ( len-- ) {tft_Write_16(*data); data++;}
      |                    ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c: In member function 'void TFT_eSPI::pushPixels(const void*, uint32_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c:578:37: note: in expansion of macro 'tft_Write_16'
  578 |   if(_swapBytes) { while ( len-- ) {tft_Write_16(*data); data++; } }
      |                                     ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:436:32: note: in expansion of macro 'GPIO_CLR_REG'
  436 |       #define tft_Write_16S(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 0)); WR_H; \
      |                                ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c:579:27: note: in expansion of macro 'tft_Write_16S'
  579 |   else { while ( len-- ) {tft_Write_16S(*data); data++;} }
      |                           ^~~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::spiwrite(uint8_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:412:27: note: in expansion of macro 'GPIO_CLR_REG'
  412 |   #define tft_Write_8(C)  GPIO_CLR_REG =  GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t)(C)); WR_H
      |                           ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:950:3: note: in expansion of macro 'tft_Write_8'
  950 |   tft_Write_8(c);
      |   ^~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::writecommand(uint8_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:167:20: error: 'GPIO' was not declared in this scope
  167 |       #define DC_C GPIO.out_w1tc = (1 << TFT_DC)
      |                    ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:964:3: note: in expansion of macro 'DC_C'
  964 |   DC_C;
      |   ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::writedata(uint8_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:168:20: error: 'GPIO' was not declared in this scope
  168 |       #define DC_D GPIO.out_w1ts = (1 << TFT_DC)
      |                    ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:1012:3: note: in expansion of macro 'DC_D'
 1012 |   DC_D;        // Play safe, but should already be in data mode
      |   ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::drawChar(int32_t, int32_t, uint16_t, uint32_t, uint32_t, uint8_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:3167:32: note: in expansion of macro 'tft_Write_16'
 3167 |         if (column[k] & mask) {tft_Write_16(color);}
      |                                ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:3168:15: note: in expansion of macro 'tft_Write_16'
 3168 |         else {tft_Write_16(bg);}
      |               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:3171:7: note: in expansion of macro 'tft_Write_16'
 3171 |       tft_Write_16(bg);
      |       ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::setWindow(int32_t, int32_t, int32_t, int32_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:167:20: error: 'GPIO' was not declared in this scope
  167 |       #define DC_C GPIO.out_w1tc = (1 << TFT_DC)
      |                    ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:3419:5: note: in expansion of macro 'DC_C'
 3419 |     DC_C; tft_Write_8(TFT_CASET);
      |     ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::readAddrWindow(int32_t, int32_t, int32_t, int32_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:167:20: error: 'GPIO' was not declared in this scope
  167 |       #define DC_C GPIO.out_w1tc = (1 << TFT_DC)
      |                    ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:3495:3: note: in expansion of macro 'DC_C'
 3495 |   DC_C; tft_Write_8(TFT_CASET);
      |   ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::drawPixel(int32_t, int32_t, uint32_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:167:20: error: 'GPIO' was not declared in this scope
  167 |       #define DC_C GPIO.out_w1tc = (1 << TFT_DC)
      |                    ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:3677:7: note: in expansion of macro 'DC_C'
 3677 |       DC_C; tft_Write_8(TFT_CASET);
      |       ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:167:20: error: 'GPIO' was not declared in this scope
  167 |       #define DC_C GPIO.out_w1tc = (1 << TFT_DC)
      |                    ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:3684:7: note: in expansion of macro 'DC_C'
 3684 |       DC_C; tft_Write_8(TFT_PASET);
      |       ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:167:20: error: 'GPIO' was not declared in this scope
  167 |       #define DC_C GPIO.out_w1tc = (1 << TFT_DC)
      |                    ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:3690:3: note: in expansion of macro 'DC_C'
 3690 |   DC_C; tft_Write_8(TFT_RAMWR);
      |   ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::pushColor(uint16_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:625:25: note: in expansion of macro 'tft_Write_16'
  625 |   #define tft_Write_16N tft_Write_16
      |                         ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:3711:3: note: in expansion of macro 'tft_Write_16N'
 3711 |   tft_Write_16N(color);
      |   ^~~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual int16_t TFT_eSPI::drawChar(uint16_t, int32_t, int32_t, uint8_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:5250:31: note: in expansion of macro 'tft_Write_16'
 5250 |             if (line & mask) {tft_Write_16(textcolor);}
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:5251:19: note: in expansion of macro 'tft_Write_16'
 5251 |             else {tft_Write_16(textbgcolor);}
      |                   ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:5256:18: note: in expansion of macro 'tft_Write_16'
 5256 |         if (pX) {tft_Write_16(textbgcolor);}
      |                  ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:5305:30: note: in expansion of macro 'tft_Write_16'
 5305 |               while (tnp--) {tft_Write_16(textcolor);}
      |                              ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:5307:19: note: in expansion of macro 'tft_Write_16'
 5307 |             else {tft_Write_16(textcolor);}
      |                   ^~~~~~~~~~~~

exit status 1

Compilation error: exit status 1

Any help with this will be greatly appricated!

Did you select the display, ST7789V I think in the User_Select_Setup.h file?

The User_Select_Setup.h is in the TFT_eSPI folder.

I've tried a couple different ones at this point. I just tried uncommenting the line for ST7789V with the same result.

this is the first part of my User_Select_Setup.h file:

// This header file contains a list of user setup files and defines which one the
// compiler uses when the IDE performs a Verify/Compile or Upload.
//
// Users can create configurations for different boards and TFT displays.
// This makes selecting between hardware setups easy by "uncommenting" one line.

// The advantage of this hardware configuration method is that the examples provided
// with the library should work with immediately without any other changes being
// needed. It also improves the portability of users sketches to other hardware
// configurations and compatible libraries.
//
// Create a shortcut to this file on your desktop to permit quick access for editing.
// Re-compile and upload after making and saving any changes to this file.

// Customised User_Setup files are stored in the "User_Setups" folder.

// It is also possible for the user tft settings to be included with the sketch, see
// the "Sketch_with_tft_setup" generic example. This may be more convenient for
// multiple projects.

#ifndef USER_SETUP_LOADED //  Lets PlatformIO users define settings in
                          //  platformio.ini, see notes in "Tools" folder.

///////////////////////////////////////////////////////
//   User configuration selection lines are below    //
///////////////////////////////////////////////////////

// Only ONE line below should be uncommented to define your setup.  Add extra lines and files as needed.

// #include <User_Setup.h>           // Default setup is root library folder

//#include <User_Setups/Setup1_ILI9341.h>  // Setup file for ESP8266 configured for my ILI9341
//#include <User_Setups/Setup2_ST7735.h>   // Setup file for ESP8266 configured for my ST7735
//#include <User_Setups/Setup3_ILI9163.h>  // Setup file for ESP8266 configured for my ILI9163
//#include <User_Setups/Setup4_S6D02A1.h>  // Setup file for ESP8266 configured for my S6D02A1
//#include <User_Setups/Setup5_RPi_ILI9486.h>        // Setup file for ESP8266 configured for my stock RPi TFT
//#include <User_Setups/Setup6_RPi_Wr_ILI9486.h>     // Setup file for ESP8266 configured for my modified RPi TFT
//#include <User_Setups/Setup7_ST7735_128x128.h>     // Setup file for ESP8266 configured for my ST7735 128x128 display
//#include <User_Setups/Setup8_ILI9163_128x128.h>    // Setup file for ESP8266 configured for my ILI9163 128x128 display
//#include <User_Setups/Setup9_ST7735_Overlap.h>     // Setup file for ESP8266 configured for my ST7735
//#include <User_Setups/Setup10_RPi_touch_ILI9486.h> // Setup file for ESP8266 configured for ESP8266 and RPi TFT with touch

//#include <User_Setups/Setup11_RPi_touch_ILI9486.h> // Setup file configured for ESP32 and RPi TFT with touch
//#include <User_Setups/Setup12_M5Stack_Basic_Core.h>// Setup file for the ESP32 based M5Stack (Basic Core only)
//#include <User_Setups/Setup13_ILI9481_Parallel.h>  // Setup file for the ESP32 with parallel bus TFT
//#include <User_Setups/Setup14_ILI9341_Parallel.h>  // Setup file for the ESP32 with parallel bus TFT
//#include <User_Setups/Setup15_HX8357D.h>           // Setup file for ESP8266 configured for HX8357D
//#include <User_Setups/Setup16_ILI9488_Parallel.h>  // Setup file for the ESP32 with parallel bus TFT
//#include <User_Setups/Setup17_ePaper.h>            // Setup file for ESP8266 and any Waveshare ePaper display
//#include <User_Setups/Setup18_ST7789.h>            // Setup file for ESP8266 configured for ST7789

//#include <User_Setups/Setup19_RM68140_Parallel.h>	 // Setup file configured for RM68140 with parallel bus

//#include <User_Setups/Setup20_ILI9488.h>           // Setup file for ESP8266 and ILI9488 SPI bus TFT
//#include <User_Setups/Setup21_ILI9488.h>           // Setup file for ESP32 and ILI9488 SPI bus TFT

//#include <User_Setups/Setup22_TTGO_T4.h>           // Setup file for ESP32 and TTGO T4 version 1.2
//#include <User_Setups/Setup22_TTGO_T4_v1.3.h>      // Setup file for ESP32 and TTGO T4 version 1.3
//#include <User_Setups/Setup23_TTGO_TM.h>           // Setup file for ESP32 and TTGO TM ST7789 SPI bus TFT
//#include <User_Setups/Setup24_ST7789.h>            // Setup file for DSTIKE/ESP32/ESP8266 configured for ST7789 240 x 240
#include <User_Setups/Setup25_TTGO_T_Display.h>    // Setup file for ESP32 and TTGO T-Display ST7789V SPI bus TFT
//#include <User_Setups/Setup26_TTGO_T_Wristband.h>  // Setup file for ESP32 and TTGO T-Wristband ST7735 SPI bus TFT

//#include <User_Setups/Setup27_RPi_ST7796_ESP32.h>    // ESP32   RPi MHS-4.0 inch Display-B
//#include <User_Setups/Setup28_RPi_ST7796_ESP8266.h>  // ESP8266 RPi MHS-4.0 inch Display-B

//#include <User_Setups/Setup29_ILI9341_STM32.h>          // Setup for Nucleo board
//#include <User_Setups/Setup30_ILI9341_Parallel_STM32.h> // Setup for Nucleo board and parallel display
//#include <User_Setups/Setup31_ST7796_Parallel_STM32.h>  // Setup for Nucleo board and parallel display
//#include <User_Setups/Setup32_ILI9341_STM32F103.h>      // Setup for "Blue/Black Pill"

//#include <User_Setups/Setup33_RPi_ILI9486_STM32.h>      // Setup for Nucleo board

//#include <User_Setups/Setup34_ILI9481_Parallel_STM32.h> // Setup for Nucleo board and parallel display
//#include <User_Setups/Setup35_ILI9341_STM32_Port_Bus.h> // Setup for STM32 port A parallel display

//#include <User_Setups/Setup36_RPi_touch_ST7796.h>      // Setup file configured for ESP32 and RPi ST7796 TFT with touch

//#include <User_Setups/Setup42_ILI9341_ESP32.h>           // Setup file for ESP32 and SPI ILI9341 240x320
//#include <User_Setups/Setup43_ST7735.h>            // Setup file for ESP8266 & ESP32 configured for my ST7735S 80x160
//#include <User_Setups/Setup44_TTGO_CameraPlus.h>   // Setup file for ESP32 and TTGO T-CameraPlus ST7789 SPI bus TFT    240x240
//#include <User_Setups/Setup45_TTGO_T_Watch.h>      // Setup file for ESP32 and TTGO T-Watch ST7789 SPI bus TFT  240x240
//#include <User_Setups/Setup46_GC9A01_ESP32.h>      // Setup file for ESP32 and GC9A01 SPI bus TFT  240x240

//#include <User_Setups/Setup47_ST7735.h>            // Setup file for ESP32 configured for ST7735 128 x 128 animated eyes

//#include <User_Setups/Setup50_SSD1963_Parallel.h>  // Setup file for ESP32 and SSD1963 TFT display

//#include <User_Setups/Setup51_LilyPi_ILI9481.h>    // Setup file for LilyGo LilyPi with ILI9481 display
//#include <User_Setups/Setup52_LilyPi_ST7796.h>     // Setup file for LilyGo LilyPi with ST7796 display

//#include <User_Setups/Setup60_RP2040_ILI9341.h>    // Setup file for RP2040 with SPI ILI9341
//#include <User_Setups/Setup61_RP2040_ILI9341_PIO_SPI.h>    // Setup file for RP2040 with PIO SPI ILI9341
//#include <User_Setups/Setup62_RP2040_Nano_Connect_ILI9341.h>    // Setup file for RP2040 with SPI ILI9341

//#include <User_Setups/Setup70_ESP32_S2_ILI9341.h>     // Setup file for ESP32 S2 with SPI ILI9341
//#include <User_Setups/Setup70b_ESP32_S3_ILI9341.h>    // Setup file for ESP32 S3 with SPI ILI9341
//#include <User_Setups/Setup70c_ESP32_C3_ILI9341.h>    // Setup file for ESP32 C3 with SPI ILI9341
//#include <User_Setups/Setup70d_ILI9488_S3_Parallel.h> // Setup file for ESP32 S3 with SPI ILI9488

//#include <User_Setups/Setup71_ESP32_S2_ST7789.h>       // Setup file for ESP32 S2 with ST7789
//#include <User_Setups/Setup72_ESP32_ST7789_172x320.h>  // Setup file for ESP32 with ST7789 1.47" 172x320

//#include <User_Setups/Setup100_RP2040_ILI9488_parallel.h> // Setup file for Pico/RP2040 with 8 bit parallel ILI9488
//#include <User_Setups/Setup101_RP2040_ILI9481_parallel.h> // Setup file for Pico/RP2040 with 8 bit parallel ILI9481
//#include <User_Setups/Setup102_RP2040_ILI9341_parallel.h> // Setup file for Pico/RP2040 with 8 bit parallel ILI9341
//#include <User_Setups/Setup103_RP2040_ILI9486_parallel.h> // Setup file for Pico/RP2040 with 8 bit parallel ILI9486
//#include <User_Setups/Setup104_RP2040_ST7796_parallel.h>  // Setup file for Pico/RP2040 with 8 bit parallel ST7796

//#include <User_Setups/Setup105_RP2040_ST7796_16bit_parallel.h>  // Setup file for RP2040 16 bit parallel display
//#include <User_Setups/Setup106_RP2040_ILI9481_16bit_parallel.h> // Setup file for RP2040 16 bit parallel display
//#include <User_Setups/Setup107_RP2040_ILI9341_16bit_parallel.h> // Setup file for RP2040 16 bit parallel display

//#include <User_Setups/Setup135_ST7789.h>           // Setup file for ESP8266 and ST7789 135 x 240 TFT

//#include <User_Setups/Setup136_LilyGo_TTV.h>       // Setup file for ESP32 and Lilygo TTV ST7789 SPI bus TFT  135x240
//#include <User_Setups/Setup137_LilyGo_TDisplay_RP2040.h>  // Setup file for Lilygo T-Display RP2040 (ST7789 on SPI bus with 135x240 TFT)

//#include <User_Setups/Setup200_GC9A01.h>           // Setup file for ESP32 and GC9A01 240 x 240 TFT

//#include <User_Setups/Setup201_WT32_SC01.h>        // Setup file for ESP32 based WT32_SC01 from Seeed

//#include <User_Setups/Setup202_SSD1351_128.h>      // Setup file for ESP32/ESP8266 based SSD1351 128x128 1.5inch OLED display

//#include <User_Setups/Setup203_ST7789.h>     // Setup file for ESP32/ESP8266 based ST7789 240X280 1.69inch TFT 

//#include <User_Setups/Setup204_ESP32_TouchDown.h>     // Setup file for the ESP32 TouchDown based on ILI9488 480 x 320 TFT 

//#include <User_Setups/Setup205_ESP32_TouchDown_S3.h>     // Setup file for the ESP32 TouchDown S3 based on ILI9488 480 x 320 TFT 

//#include <User_Setups/Setup206_LilyGo_T_Display_S3.h>

//#include <User_Setups/Setup301_BW16_ST7735.h>            // Setup file for Bw16-based boards with ST7735 160 x 80 TFT

//#include <User_Setups/SetupX_Template.h>     // Template file for a setup


//#include <User_Setups/Dustin_ILI9488.h>           // Setup file for Dustin Watts PCB with ILI9488
//#include <User_Setups/Dustin_ST7796.h>           // Setup file for Dustin Watts PCB with ST7796
//#include <User_Setups/Dustin_ILI9488_Pico.h>        // Setup file for Dustin Watts Pico PCB with ST7796
//#include <User_Setups/Dustin_ST7789_Pico.h>           // Setup file for Dustin Watts PCB with ST7789 240 x 240 on 3.3V adapter board
//#include <User_Setups/Dustin_GC9A01_Pico.h>           // Setup file for Dustin Watts PCB with GC9A01 240 x 240 on 3.3V adapter board
//#include <User_Setups/Dustin_GC9A01_ESP32.h>           // Setup file for Dustin Watts PCB with GC9A01 240 x 240 on 3.3V adapter board
//#include <User_Setups/Dustin_STT7789_ESP32.h>           // Setup file for Dustin Watts PCB with ST7789 240 x 240 on 3.3V adapter board
//#include <User_Setups/Dustin_ILI9341_ESP32.h>           // Setup file for Dustin Watts PCB with ILI9341
//#include <User_Setups/ILI9225.h>

#endif // USER_SETUP_LOADED



What ESP32 board have you selected in board list?

ESP32S3 Dev Module should work....I've got some ESP32 Dev Modules with that screen and they work with TFT_eSPI.

This one has been working all the way up until now...

This is the board that i have selected:

Will it compile with that board selected?

Everything appears to be OK....I've got no idea what's wrong.

Anyway I'm off to bed....Goodnight.

Ok Thanks... The problem is that its not compiling even with that board selected.

Can you please delete TFT_eSPI and follow the steps in this GitHub - Xinyuan-LilyGO/T-Display-S3 again.

I redownloaded the .zip form the GitHub and copied all of the files from the lib folder to the Libraries folder. I uncommented the line in the User_Select_Setup.h file for ST7789V. I then closed and restarted Arduino. When prompted to install updates I selected "Later". I tried to "Verify" the same example program and received the same Error. I tried to "Verify" another program not using TFT_eSPI and it worked🤔

I tried the steps from this website ArduBadge and i also reduced the code to just this:

#include <TFT_eSPI.h>



void setup() {
}

void loop() {
 
}

I still get the same error:

In file included from c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.h:96,
                 from c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:16:
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c: In function 'void dc_callback(spi_transaction_t*)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:203:22: error: 'GPIO' was not declared in this scope
  203 |         #define DC_D GPIO.out_w1ts = (1 << TFT_DC)//;GPIO.out_w1ts = (1 << TFT_DC)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c:783:28: note: in expansion of macro 'DC_D'
  783 |   if ((bool)spi_tx->user) {DC_D;}
      |                            ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:202:22: error: 'GPIO' was not declared in this scope
  202 |         #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c:784:9: note: in expansion of macro 'DC_C'
  784 |   else {DC_C;}
      |         ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::begin_tft_write()':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:247:22: error: 'GPIO' was not declared in this scope
  247 |         #define CS_L GPIO.out_w1tc = (1 << TFT_CS); GPIO.out_w1tc = (1 << TFT_CS)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:80:5: note: in expansion of macro 'CS_L'
   80 |     CS_L;
      |     ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::begin_nin_write()':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:247:22: error: 'GPIO' was not declared in this scope
  247 |         #define CS_L GPIO.out_w1tc = (1 << TFT_CS); GPIO.out_w1tc = (1 << TFT_CS)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:92:5: note: in expansion of macro 'CS_L'
   92 |     CS_L;
      |     ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::end_tft_write()':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:248:22: error: 'GPIO' was not declared in this scope
  248 |         #define CS_H GPIO.out_w1ts = (1 << TFT_CS)//;GPIO.out_w1ts = (1 << TFT_CS)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:106:7: note: in expansion of macro 'CS_H'
  106 |       CS_H;
      |       ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::end_nin_write()':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:248:22: error: 'GPIO' was not declared in this scope
  248 |         #define CS_H GPIO.out_w1ts = (1 << TFT_CS)//;GPIO.out_w1ts = (1 << TFT_CS)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:121:7: note: in expansion of macro 'CS_H'
  121 |       CS_H;
      |       ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::begin_tft_read()':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:247:22: error: 'GPIO' was not declared in this scope
  247 |         #define CS_L GPIO.out_w1tc = (1 << TFT_CS); GPIO.out_w1tc = (1 << TFT_CS)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:141:5: note: in expansion of macro 'CS_L'
  141 |     CS_L;
      |     ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::end_tft_read()':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:248:22: error: 'GPIO' was not declared in this scope
  248 |         #define CS_H GPIO.out_w1ts = (1 << TFT_CS)//;GPIO.out_w1ts = (1 << TFT_CS)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:161:7: note: in expansion of macro 'CS_H'
  161 |       CS_H;
      |       ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::writecommand(uint8_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:202:22: error: 'GPIO' was not declared in this scope
  202 |         #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:964:3: note: in expansion of macro 'DC_C'
  964 |   DC_C;
      |   ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::writedata(uint8_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:203:22: error: 'GPIO' was not declared in this scope
  203 |         #define DC_D GPIO.out_w1ts = (1 << TFT_DC)//;GPIO.out_w1ts = (1 << TFT_DC)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:1012:3: note: in expansion of macro 'DC_D'
 1012 |   DC_D;        // Play safe, but should already be in data mode
      |   ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'uint8_t TFT_eSPI::readcommand8(uint8_t, uint8_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:202:22: error: 'GPIO' was not declared in this scope
  202 |         #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:1049:3: note: in expansion of macro 'DC_C'
 1049 |   DC_C; tft_Write_8(0xD9);
      |   ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual uint16_t TFT_eSPI::readPixel(int32_t, int32_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:248:22: error: 'GPIO' was not declared in this scope
  248 |         #define CS_H GPIO.out_w1ts = (1 << TFT_CS)//;GPIO.out_w1ts = (1 << TFT_CS)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:1205:3: note: in expansion of macro 'CS_H'
 1205 |   CS_H;
      |   ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::readRectRGB(int32_t, int32_t, int32_t, int32_t, uint8_t*)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:248:22: error: 'GPIO' was not declared in this scope
  248 |         #define CS_H GPIO.out_w1ts = (1 << TFT_CS)//;GPIO.out_w1ts = (1 << TFT_CS)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:2209:3: note: in expansion of macro 'CS_H'
 2209 |   CS_H;
      |   ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::setWindow(int32_t, int32_t, int32_t, int32_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:202:22: error: 'GPIO' was not declared in this scope
  202 |         #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:3419:5: note: in expansion of macro 'DC_C'
 3419 |     DC_C; tft_Write_8(TFT_CASET);
      |     ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::readAddrWindow(int32_t, int32_t, int32_t, int32_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:202:22: error: 'GPIO' was not declared in this scope
  202 |         #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:3495:3: note: in expansion of macro 'DC_C'
 3495 |   DC_C; tft_Write_8(TFT_CASET);
      |   ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::drawPixel(int32_t, int32_t, uint32_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:202:22: error: 'GPIO' was not declared in this scope
  202 |         #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:3677:7: note: in expansion of macro 'DC_C'
 3677 |       DC_C; tft_Write_8(TFT_CASET);
      |       ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:202:22: error: 'GPIO' was not declared in this scope
  202 |         #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:3684:7: note: in expansion of macro 'DC_C'
 3684 |       DC_C; tft_Write_8(TFT_PASET);
      |       ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.h:202:22: error: 'GPIO' was not declared in this scope
  202 |         #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:3690:3: note: in expansion of macro 'DC_C'
 3690 |   DC_C; tft_Write_8(TFT_RAMWR);
      |   ^~~~

exit status 1

Compilation error: exit status 1```


I appreciate any ideas.

I'll recommend using TFT_eSPI from this github link as it's the most up-to-date.

After installing that library, find and uncomment this comment .

//#include <User_Setups/Setup206_LilyGo_T_Display_S3.h>

Finally select the "LilyGo T-Display-S3" board in the boards list for ESP32.

The verify returns no errors for me, so it should work for you.

Unfortently it still does not work...

I downloaded the Library from the source provided and placed it in the Libaries folder

image

I modified the User_Setup_Select.h file:

// This header file contains a list of user setup files and defines which one the
// compiler uses when the IDE performs a Verify/Compile or Upload.
//
// Users can create configurations for different boards and TFT displays.
// This makes selecting between hardware setups easy by "uncommenting" one line.

// The advantage of this hardware configuration method is that the examples provided
// with the library should work with immediately without any other changes being
// needed. It also improves the portability of users sketches to other hardware
// configurations and compatible libraries.
//
// Create a shortcut to this file on your desktop to permit quick access for editing.
// Re-compile and upload after making and saving any changes to this file.

// Example User_Setup files are stored in the "User_Setups" folder. These can be used
// unmodified or adapted for a particular hardware configuration.

#ifndef USER_SETUP_LOADED //  Lets PlatformIO users define settings in
                          //  platformio.ini, see notes in "Tools" folder.

///////////////////////////////////////////////////////
//   User configuration selection lines are below    //
///////////////////////////////////////////////////////

// Only ONE line below should be uncommented to define your setup.  Add extra lines and files as needed.

//#include <User_Setup.h>           // Default setup is root library folder

//#include <User_Setups/Setup1_ILI9341.h>  // Setup file for ESP8266 configured for my ILI9341
//#include <User_Setups/Setup2_ST7735.h>   // Setup file for ESP8266 configured for my ST7735
//#include <User_Setups/Setup3_ILI9163.h>  // Setup file for ESP8266 configured for my ILI9163
//#include <User_Setups/Setup4_S6D02A1.h>  // Setup file for ESP8266 configured for my S6D02A1
//#include <User_Setups/Setup5_RPi_ILI9486.h>        // Setup file for ESP8266 configured for my stock RPi TFT
//#include <User_Setups/Setup6_RPi_Wr_ILI9486.h>     // Setup file for ESP8266 configured for my modified RPi TFT
//#include <User_Setups/Setup7_ST7735_128x128.h>     // Setup file for ESP8266 configured for my ST7735 128x128 display
//#include <User_Setups/Setup8_ILI9163_128x128.h>    // Setup file for ESP8266 configured for my ILI9163 128x128 display
//#include <User_Setups/Setup9_ST7735_Overlap.h>     // Setup file for ESP8266 configured for my ST7735
//#include <User_Setups/Setup10_RPi_touch_ILI9486.h> // Setup file for ESP8266 configured for ESP8266 and RPi TFT with touch

//#include <User_Setups/Setup11_RPi_touch_ILI9486.h> // Setup file configured for ESP32 and RPi TFT with touch
//#include <User_Setups/Setup12_M5Stack_Basic_Core.h>// Setup file for the ESP32 based M5Stack (Basic Core only)
//#include <User_Setups/Setup13_ILI9481_Parallel.h>  // Setup file for the ESP32 with parallel bus TFT
//#include <User_Setups/Setup14_ILI9341_Parallel.h>  // Setup file for the ESP32 with parallel bus TFT
//#include <User_Setups/Setup15_HX8357D.h>           // Setup file for ESP8266 configured for HX8357D
//#include <User_Setups/Setup16_ILI9488_Parallel.h>  // Setup file for the ESP32 with parallel bus TFT
//#include <User_Setups/Setup17_ePaper.h>            // Setup file for ESP8266 and any Waveshare ePaper display
//#include <User_Setups/Setup18_ST7789.h>            // Setup file for ESP8266 configured for ST7789

//#include <User_Setups/Setup19_RM68140_Parallel.h>	 // Setup file configured for RM68140 with parallel bus

//#include <User_Setups/Setup20_ILI9488.h>           // Setup file for ESP8266 and ILI9488 SPI bus TFT
//#include <User_Setups/Setup21_ILI9488.h>           // Setup file for ESP32 and ILI9488 SPI bus TFT

//#include <User_Setups/Setup22_TTGO_T4.h>           // Setup file for ESP32 and TTGO T4 version 1.2
//#include <User_Setups/Setup22_TTGO_T4_v1.3.h>      // Setup file for ESP32 and TTGO T4 version 1.3
//#include <User_Setups/Setup23_TTGO_TM.h>           // Setup file for ESP32 and TTGO TM ST7789 SPI bus TFT
//#include <User_Setups/Setup24_ST7789.h>            // Setup file for DSTIKE/ESP32/ESP8266 configured for ST7789 240 x 240
//#include <User_Setups/Setup25_TTGO_T_Display.h>    // Setup file for ESP32 and TTGO T-Display ST7789V SPI bus TFT
//#include <User_Setups/Setup26_TTGO_T_Wristband.h>  // Setup file for ESP32 and TTGO T-Wristband ST7735 SPI bus TFT

//#include <User_Setups/Setup27_RPi_ST7796_ESP32.h>    // ESP32   RPi MHS-4.0 inch Display-B
//#include <User_Setups/Setup28_RPi_ST7796_ESP8266.h>  // ESP8266 RPi MHS-4.0 inch Display-B

//#include <User_Setups/Setup29_ILI9341_STM32.h>          // Setup for Nucleo board
//#include <User_Setups/Setup30_ILI9341_Parallel_STM32.h> // Setup for Nucleo board and parallel display
//#include <User_Setups/Setup31_ST7796_Parallel_STM32.h>  // Setup for Nucleo board and parallel display
//#include <User_Setups/Setup32_ILI9341_STM32F103.h>      // Setup for "Blue/Black Pill"

//#include <User_Setups/Setup33_RPi_ILI9486_STM32.h>      // Setup for Nucleo board

//#include <User_Setups/Setup34_ILI9481_Parallel_STM32.h> // Setup for Nucleo board and parallel display
//#include <User_Setups/Setup35_ILI9341_STM32_Port_Bus.h> // Setup for STM32 port A parallel display

//#include <User_Setups/Setup36_RPi_touch_ST7796.h>      // Setup file configured for ESP32 and RPi ST7796 TFT with touch

//#include <User_Setups/Setup42_ILI9341_ESP32.h>           // Setup file for ESP32 and SPI ILI9341 240x320
//#include <User_Setups/Setup43_ST7735.h>            // Setup file for ESP8266 & ESP32 configured for my ST7735S 80x160
//#include <User_Setups/Setup44_TTGO_CameraPlus.h>   // Setup file for ESP32 and TTGO T-CameraPlus ST7789 SPI bus TFT    240x240
//#include <User_Setups/Setup45_TTGO_T_Watch.h>      // Setup file for ESP32 and TTGO T-Watch ST7789 SPI bus TFT  240x240
//#include <User_Setups/Setup46_GC9A01_ESP32.h>      // Setup file for ESP32 and GC9A01 SPI bus TFT  240x240

//#include <User_Setups/Setup47_ST7735.h>            // Setup file for ESP32 configured for ST7735 128 x 128 animated eyes

//#include <User_Setups/Setup50_SSD1963_Parallel.h>  // Setup file for ESP32 and SSD1963 TFT display

//#include <User_Setups/Setup51_LilyPi_ILI9481.h>    // Setup file for LilyGo LilyPi with ILI9481 display
//#include <User_Setups/Setup52_LilyPi_ST7796.h>     // Setup file for LilyGo LilyPi with ST7796 display

//#include <User_Setups/Setup60_RP2040_ILI9341.h>              // Setup file for RP2040 with SPI ILI9341
//#include <User_Setups/Setup61_RP2040_ILI9341_PIO_SPI.h>      // Setup file for RP2040 with PIO SPI ILI9341
//#include <User_Setups/Setup62_RP2040_Nano_Connect_ILI9341.h> // Setup file for RP2040 with SPI ILI9341

//#include <User_Setups/Setup66_Seeed_XIAO_Round.h>     // Setup file for Seeed XIAO with GC9A01 240x240

//#include <User_Setups/Setup70_ESP32_S2_ILI9341.h>     // Setup file for ESP32 S2 with SPI ILI9341
//#include <User_Setups/Setup70b_ESP32_S3_ILI9341.h>    // Setup file for ESP32 S3 with SPI ILI9341
//#include <User_Setups/Setup70c_ESP32_C3_ILI9341.h>    // Setup file for ESP32 C3 with SPI ILI9341
//#include <User_Setups/Setup70d_ILI9488_S3_Parallel.h> // Setup file for ESP32 S3 with SPI ILI9488

//#include <User_Setups/Setup71_ESP32_S2_ST7789.h>       // Setup file for ESP32 S2 with ST7789
//#include <User_Setups/Setup72_ESP32_ST7789_172x320.h>  // Setup file for ESP32 with ST7789 1.47" 172x320

//#include <User_Setups/Setup100_RP2040_ILI9488_parallel.h> // Setup file for Pico/RP2040 with 8 bit parallel ILI9488
//#include <User_Setups/Setup101_RP2040_ILI9481_parallel.h> // Setup file for Pico/RP2040 with 8 bit parallel ILI9481
//#include <User_Setups/Setup102_RP2040_ILI9341_parallel.h> // Setup file for Pico/RP2040 with 8 bit parallel ILI9341
//#include <User_Setups/Setup103_RP2040_ILI9486_parallel.h> // Setup file for Pico/RP2040 with 8 bit parallel ILI9486
//#include <User_Setups/Setup104_RP2040_ST7796_parallel.h>  // Setup file for Pico/RP2040 with 8 bit parallel ST7796

//#include <User_Setups/Setup105_RP2040_ST7796_16bit_parallel.h>  // Setup file for RP2040 16 bit parallel display
//#include <User_Setups/Setup106_RP2040_ILI9481_16bit_parallel.h> // Setup file for RP2040 16 bit parallel display
//#include <User_Setups/Setup107_RP2040_ILI9341_16bit_parallel.h> // Setup file for RP2040 16 bit parallel display
//#include <User_Setups/Setup108_RP2040_ST7735.h> // Setup file for Waveshare RP2040 board with onboard ST7735 0.96" 160x80 display

//#include <User_Setups/Setup135_ST7789.h>           // Setup file for ESP8266 and ST7789 135 x 240 TFT

//#include <User_Setups/Setup136_LilyGo_TTV.h>       // Setup file for ESP32 and Lilygo TTV ST7789 SPI bus TFT  135x240
//#include <User_Setups/Setup137_LilyGo_TDisplay_RP2040.h>  // Setup file for Lilygo T-Display RP2040 (ST7789 on SPI bus with 135x240 TFT)

//#include <User_Setups/Setup138_Pico_Explorer_Base_RP2040_ST7789.h> // Setup file for Pico Explorer Base by Pimoroni for RP2040 (ST7789 on SPI bus with 240x240 TFT)

//#include <User_Setups/Setup200_GC9A01.h>           // Setup file for ESP32 and GC9A01 240 x 240 TFT

//#include <User_Setups/Setup201_WT32_SC01.h>        // Setup file for ESP32 based WT32_SC01 from Seeed

//#include <User_Setups/Setup202_SSD1351_128.h>      // Setup file for ESP32/ESP8266 based SSD1351 128x128 1.5inch OLED display

//#include <User_Setups/Setup203_ST7789.h>     // Setup file for ESP32/ESP8266 based ST7789 240X280 1.69inch TFT 

//#include <User_Setups/Setup204_ESP32_TouchDown.h>     // Setup file for the ESP32 TouchDown based on ILI9488 480 x 320 TFT 

//#include <User_Setups/Setup205_ESP32_TouchDown_S3.h>     // Setup file for the ESP32 TouchDown S3 based on ILI9488 480 x 320 TFT 

#include <User_Setups/Setup206_LilyGo_T_Display_S3.h>     // For the LilyGo T-Display S3 based ESP32S3 with ST7789 170 x 320 TFT
//#include <User_Setups/Setup207_LilyGo_T_HMI.h>            // For the LilyGo T-HMI S3 based ESP32S3 with ST7789 240 x 320 TFT
//#include <User_Setups/Setup209_LilyGo_T_Dongle_S3.h>      // For the LilyGo T-Dongle S3 based ESP32 with ST7735 80 x 160 TFT
//#include <User_Setups/Setup210_LilyGo_T_Embed_S3.h>         // For the LilyGo T-Embed S3 based ESP32S3 with ST7789 170 x 320 TFT
//#include <User_Setups/Setup211_LilyGo_T_QT_Pro_S3.h>         // For the LilyGo T-QT Pro S3 based ESP32S3 with GC9A01 128 x 128 TFT
// #include <User_Setups/Setup212_LilyGo_T_PicoPro.h>         // For the LilyGo T-PICO-Pro with ST7796 222 x 480 TFT
// #include <User_Setups/Setup213_LilyGo_T_Beam_Shield.h>         // For the LilyGo T-BEAM V1.x with ST7796 222 x 480 TFT

//#include <User_Setups/Setup250_ESP32_S3_Box_Lite.h>      // For the ESP32 S3 Box Lite
//#include <User_Setups/Setup251_ESP32_S3_Box.h>            // For the ESP32 S3 Box

//#include <User_Setups/Setup301_BW16_ST7735.h>            // Setup file for Bw16-based boards with ST7735 160 x 80 TFT

//#include <User_Setups/SetupX_Template.h>     // Template file for a setup


//#include <User_Setups/Dustin_ILI9488.h>          // Setup file for Dustin Watts PCB with ILI9488
//#include <User_Setups/Dustin_ST7796.h>           // Setup file for Dustin Watts PCB with ST7796
//#include <User_Setups/Dustin_ILI9488_Pico.h>     // Setup file for Dustin Watts Pico PCB with ST7796
//#include <User_Setups/Dustin_ST7789_Pico.h>      // Setup file for Dustin Watts PCB with ST7789 240 x 240 on 3.3V adapter board
//#include <User_Setups/Dustin_GC9A01_Pico.h>      // Setup file for Dustin Watts PCB with GC9A01 240 x 240 on 3.3V adapter board
//#include <User_Setups/Dustin_GC9A01_ESP32.h>     // Setup file for Dustin Watts PCB with GC9A01 240 x 240 on 3.3V adapter board
//#include <User_Setups/Dustin_STT7789_ESP32.h>    // Setup file for Dustin Watts PCB with ST7789 240 x 240 on 3.3V adapter board
//#include <User_Setups/Dustin_ILI9341_ESP32.h>    // Setup file for Dustin Watts PCB with ILI9341
//#include <User_Setups/ILI9225.h>

#endif // USER_SETUP_LOADED

And I changed the board to "LilyGo T-Display-S3" Using the same example code gives me the same error. Did I perhaps miss a step?

#include <TFT_eSPI.h>

#include "install.h"

TFT_eSPI tft= TFT_eSPI();
TFT_eSprite sprite = TFT_eSprite(&tft);

void setup() {
  tft.init();
  tft.setRotation(1);
  tft.setSwapBytes(true);
  tft.fillScreen(TFT_WHITE);
  tft.pushImage(106,0,214,170,install);

  sprite.createSprite(146,170);
 
  sprite.setTextColor(TFT_BLACK,TFT_WHITE);
  sprite.setTextDatum(4);
}

//progress bar variables
int progress=0;
int w=120;
int h=18;
int x=12;
int y=90;
int blocks=0;

void loop() {
 sprite.fillSprite(TFT_WHITE);
 sprite.setFreeFont(&Orbitron_Light_24);
 sprite.drawString("Progress:",75,16);
 sprite.setFreeFont(&Orbitron_Light_32);

 

 sprite.drawString(String(progress)+"%",75,54);

 progress++;
 if(progress==101)
 progress=0;

  blocks =progress/5;
 sprite.drawRoundRect(x,y,w,h,3,TFT_BLACK);
 for(int i=0;i<blocks;i++)
 sprite.fillRect(i*5+(x+2)+(i*1),y+4,5,10,TFT_BLACK);
 sprite.drawRect(10,124,60,22,TFT_BLACK);
 sprite.drawRect(76,124,60,22,TFT_BLACK);
 sprite.drawString("OK",40,134,2);
 sprite.drawString("CANCEL",106,134,2);
 sprite.setTextFont(0);
 sprite.drawString("Installation almost done!!",80,160);
 sprite.pushSprite(0,0);
delay(60);
}

The Error Message:

In file included from c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.h:97,
                 from c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:16:
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.c: In member function 'uint8_t TFT_eSPI::readByte()':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:466:20: error: 'GPIO' was not declared in this scope
  466 |       #define RD_L GPIO.out_w1tc = (1 << TFT_RD)
      |                    ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.c:95:3: note: in expansion of macro 'RD_L'
   95 |   RD_L;
      |   ^~~~
In file included from c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:20:
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.c:96:8: error: 'gpio_get_level' was not declared in this scope
   96 |   b  = gpio_get_level((gpio_num_t)TFT_D0); // Read three times to allow for bus access time
      |        ^~~~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.c: In member function 'void TFT_eSPI::pushBlock(uint16_t, uint32_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.c:543:5: note: in expansion of macro 'tft_Write_16'
  543 |     tft_Write_16(color);
      |     ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.c:554:23: note: in expansion of macro 'tft_Write_16'
  554 |   else while (len--) {tft_Write_16(color);}
      |                       ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.c: In member function 'void TFT_eSPI::pushSwapBytePixels(const void*, uint32_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.c:564:20: note: in expansion of macro 'tft_Write_16'
  564 |   while ( len-- ) {tft_Write_16(*data); data++;}
      |                    ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.c: In member function 'void TFT_eSPI::pushPixels(const void*, uint32_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.c:574:37: note: in expansion of macro 'tft_Write_16'
  574 |   if(_swapBytes) { while ( len-- ) {tft_Write_16(*data); data++; } }
      |                                     ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:436:32: note: in expansion of macro 'GPIO_CLR_REG'
  436 |       #define tft_Write_16S(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 0)); WR_H; \
      |                                ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.c:575:27: note: in expansion of macro 'tft_Write_16S'
  575 |   else { while ( len-- ) {tft_Write_16S(*data); data++;} }
      |                           ^~~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'void TFT_eSPI::begin_tft_write()':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:225:22: error: 'GPIO' was not declared in this scope
  225 |         #define CS_L GPIO.out_w1tc = (1 << TFT_CS)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:80:5: note: in expansion of macro 'CS_L'
   80 |     CS_L;
      |     ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::begin_nin_write()':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:225:22: error: 'GPIO' was not declared in this scope
  225 |         #define CS_L GPIO.out_w1tc = (1 << TFT_CS)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:92:5: note: in expansion of macro 'CS_L'
   92 |     CS_L;
      |     ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'void TFT_eSPI::end_tft_write()':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:226:22: error: 'GPIO' was not declared in this scope
  226 |         #define CS_H GPIO.out_w1ts = (1 << TFT_CS)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:106:7: note: in expansion of macro 'CS_H'
  106 |       CS_H;
      |       ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::end_nin_write()':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:226:22: error: 'GPIO' was not declared in this scope
  226 |         #define CS_H GPIO.out_w1ts = (1 << TFT_CS)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:121:7: note: in expansion of macro 'CS_H'
  121 |       CS_H;
      |       ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'void TFT_eSPI::begin_tft_read()':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:225:22: error: 'GPIO' was not declared in this scope
  225 |         #define CS_L GPIO.out_w1tc = (1 << TFT_CS)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:147:4: note: in expansion of macro 'CS_L'
  147 |    CS_L;
      |    ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'void TFT_eSPI::end_tft_read()':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:226:22: error: 'GPIO' was not declared in this scope
  226 |         #define CS_H GPIO.out_w1ts = (1 << TFT_CS)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:169:24: note: in expansion of macro 'CS_H'
  169 |    if(!inTransaction) {CS_H;}
      |                        ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'void TFT_eSPI::spiwrite(uint8_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:412:27: note: in expansion of macro 'GPIO_CLR_REG'
  412 |   #define tft_Write_8(C)  GPIO_CLR_REG =  GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t)(C)); WR_H
      |                           ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:970:3: note: in expansion of macro 'tft_Write_8'
  970 |   tft_Write_8(c);
      |   ^~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'void TFT_eSPI::writecommand(uint8_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:167:20: error: 'GPIO' was not declared in this scope
  167 |       #define DC_C GPIO.out_w1tc = (1 << TFT_DC)
      |                    ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:984:3: note: in expansion of macro 'DC_C'
  984 |   DC_C;
      |   ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'void TFT_eSPI::writedata(uint8_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:168:20: error: 'GPIO' was not declared in this scope
  168 |       #define DC_D GPIO.out_w1ts = (1 << TFT_DC)
      |                    ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:1047:3: note: in expansion of macro 'DC_D'
 1047 |   DC_D;        // Play safe, but should already be in data mode
      |   ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'uint8_t TFT_eSPI::readcommand8(uint8_t, uint8_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:225:22: error: 'GPIO' was not declared in this scope
  225 |         #define CS_L GPIO.out_w1tc = (1 << TFT_CS)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:1070:3: note: in expansion of macro 'CS_L'
 1070 |   CS_L;
      |   ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'virtual uint16_t TFT_eSPI::readPixel(int32_t, int32_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:225:22: error: 'GPIO' was not declared in this scope
  225 |         #define CS_L GPIO.out_w1tc = (1 << TFT_CS)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:1148:25: note: in expansion of macro 'CS_L'
 1148 |   if (!inTransaction) { CS_L; } // CS_L can be multi-statement
      |                         ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:226:22: error: 'GPIO' was not declared in this scope
  226 |         #define CS_H GPIO.out_w1ts = (1 << TFT_CS)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:1168:27: note: in expansion of macro 'CS_H'
 1168 |     if (!inTransaction) { CS_H; } // CS_H can be multi-statement
      |                           ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'void TFT_eSPI::readRect(int32_t, int32_t, int32_t, int32_t, uint16_t*)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:225:22: error: 'GPIO' was not declared in this scope
  225 |         #define CS_L GPIO.out_w1tc = (1 << TFT_CS)
      |                      ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:1279:3: note: in expansion of macro 'CS_L'
 1279 |   CS_L;
      |   ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::drawChar(int32_t, int32_t, uint16_t, uint32_t, uint32_t, uint8_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3216:32: note: in expansion of macro 'tft_Write_16'
 3216 |         if (column[k] & mask) {tft_Write_16(color);}
      |                                ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3217:15: note: in expansion of macro 'tft_Write_16'
 3217 |         else {tft_Write_16(bg);}
      |               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3220:7: note: in expansion of macro 'tft_Write_16'
 3220 |       tft_Write_16(bg);
      |       ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::setWindow(int32_t, int32_t, int32_t, int32_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:167:20: error: 'GPIO' was not declared in this scope
  167 |       #define DC_C GPIO.out_w1tc = (1 << TFT_DC)
      |                    ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3480:5: note: in expansion of macro 'DC_C'
 3480 |     DC_C; tft_Write_8(TFT_CASET);
      |     ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'void TFT_eSPI::readAddrWindow(int32_t, int32_t, int32_t, int32_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:167:20: error: 'GPIO' was not declared in this scope
  167 |       #define DC_C GPIO.out_w1tc = (1 << TFT_DC)
      |                    ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3556:3: note: in expansion of macro 'DC_C'
 3556 |   DC_C; tft_Write_8(TFT_CASET);
      |   ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::drawPixel(int32_t, int32_t, uint32_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:167:20: error: 'GPIO' was not declared in this scope
  167 |       #define DC_C GPIO.out_w1tc = (1 << TFT_DC)
      |                    ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3756:7: note: in expansion of macro 'DC_C'
 3756 |       DC_C; tft_Write_8(TFT_CASET);
      |       ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:167:20: error: 'GPIO' was not declared in this scope
  167 |       #define DC_C GPIO.out_w1tc = (1 << TFT_DC)
      |                    ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3763:7: note: in expansion of macro 'DC_C'
 3763 |       DC_C; tft_Write_8(TFT_PASET);
      |       ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:167:20: error: 'GPIO' was not declared in this scope
  167 |       #define DC_C GPIO.out_w1tc = (1 << TFT_DC)
      |                    ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3769:3: note: in expansion of macro 'DC_C'
 3769 |   DC_C; tft_Write_8(TFT_RAMWR);
      |   ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::pushColor(uint16_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:596:25: note: in expansion of macro 'tft_Write_16'
  596 |   #define tft_Write_16N tft_Write_16
      |                         ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:3790:3: note: in expansion of macro 'tft_Write_16N'
 3790 |   tft_Write_16N(color);
      |   ^~~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp: In member function 'virtual int16_t TFT_eSPI::drawChar(uint16_t, int32_t, int32_t, uint8_t)':
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:5322:31: note: in expansion of macro 'tft_Write_16'
 5322 |             if (line & mask) {tft_Write_16(textcolor);}
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:5323:19: note: in expansion of macro 'tft_Write_16'
 5323 |             else {tft_Write_16(textbgcolor);}
      |                   ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:5328:18: note: in expansion of macro 'tft_Write_16'
 5328 |         if (pX) {tft_Write_16(textbgcolor);}
      |                  ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:5377:30: note: in expansion of macro 'tft_Write_16'
 5377 |               while (tnp--) {tft_Write_16(textcolor);}
      |                              ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:356:26: error: 'GPIO' was not declared in this scope
  356 |     #define GPIO_CLR_REG GPIO.out1_w1tc.val
      |                          ^~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\Processors/TFT_eSPI_ESP32_S3.h:432:31: note: in expansion of macro 'GPIO_CLR_REG'
  432 |       #define tft_Write_16(C) GPIO_CLR_REG = GPIO_OUT_CLR_MASK; GPIO_SET_REG = set_mask((uint8_t) ((C) >> 8)); WR_H; \
      |                               ^~~~~~~~~~~~
c:\Users\david\Documents\Arduino\libraries\TFT_eSPI-master\TFT_eSPI.cpp:5379:19: note: in expansion of macro 'tft_Write_16'
 5379 |             else {tft_Write_16(textcolor);}
      |                   ^~~~~~~~~~~~

exit status 1

Compilation error: exit status 1```

@Dhen4553 I have the same issue. Tried everything and I still face the same error. I even downgraded the TFT_eSPI as per some recommendations, but nothing works. Same error.

'''

In file included from /Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.h:68,
                 from /Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp:17:
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.c: In function 'void dc_callback(spi_transaction_t*)':
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:195:22: error: 'GPIO' was not declared in this scope
  195 |         #define DC_D GPIO.out_w1ts = (1 << TFT_DC)//;GPIO.out_w1ts = (1 << TFT_DC)
      |                      ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.c:793:28: note: in expansion of macro 'DC_D'
  793 |   if ((bool)spi_tx->user) {DC_D;}
      |                            ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:194:22: error: 'GPIO' was not declared in this scope
  194 |         #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
      |                      ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.c:794:9: note: in expansion of macro 'DC_C'
  794 |   else {DC_C;}
      |         ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp: In member function 'void TFT_eSPI::begin_tft_write()':
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:239:22: error: 'GPIO' was not declared in this scope
  239 |         #define CS_L GPIO.out_w1tc = (1 << TFT_CS); GPIO.out_w1tc = (1 << TFT_CS)
      |                      ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp:81:5: note: in expansion of macro 'CS_L'
   81 |     CS_L;
      |     ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::begin_nin_write()':
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:239:22: error: 'GPIO' was not declared in this scope
  239 |         #define CS_L GPIO.out_w1tc = (1 << TFT_CS); GPIO.out_w1tc = (1 << TFT_CS)
      |                      ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp:93:5: note: in expansion of macro 'CS_L'
   93 |     CS_L;
      |     ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp: In member function 'void TFT_eSPI::end_tft_write()':
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:240:22: error: 'GPIO' was not declared in this scope
  240 |         #define CS_H GPIO.out_w1ts = (1 << TFT_CS)//;GPIO.out_w1ts = (1 << TFT_CS)
      |                      ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp:107:7: note: in expansion of macro 'CS_H'
  107 |       CS_H;
      |       ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::end_nin_write()':
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:240:22: error: 'GPIO' was not declared in this scope
  240 |         #define CS_H GPIO.out_w1ts = (1 << TFT_CS)//;GPIO.out_w1ts = (1 << TFT_CS)
      |                      ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp:122:7: note: in expansion of macro 'CS_H'
  122 |       CS_H;
      |       ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp: In member function 'void TFT_eSPI::begin_tft_read()':
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:239:22: error: 'GPIO' was not declared in this scope
  239 |         #define CS_L GPIO.out_w1tc = (1 << TFT_CS); GPIO.out_w1tc = (1 << TFT_CS)
      |                      ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp:142:5: note: in expansion of macro 'CS_L'
  142 |     CS_L;
      |     ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp: In member function 'void TFT_eSPI::end_tft_read()':
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:240:22: error: 'GPIO' was not declared in this scope
  240 |         #define CS_H GPIO.out_w1ts = (1 << TFT_CS)//;GPIO.out_w1ts = (1 << TFT_CS)
      |                      ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp:163:7: note: in expansion of macro 'CS_H'
  163 |       CS_H;
      |       ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp: In member function 'void TFT_eSPI::writecommand(uint8_t)':
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:194:22: error: 'GPIO' was not declared in this scope
  194 |         #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
      |                      ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp:925:3: note: in expansion of macro 'DC_C'
  925 |   DC_C;
      |   ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp: In member function 'void TFT_eSPI::writedata(uint8_t)':
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:195:22: error: 'GPIO' was not declared in this scope
  195 |         #define DC_D GPIO.out_w1ts = (1 << TFT_DC)//;GPIO.out_w1ts = (1 << TFT_DC)
      |                      ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp:973:3: note: in expansion of macro 'DC_D'
  973 |   DC_D;        // Play safe, but should already be in data mode
      |   ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp: In member function 'uint8_t TFT_eSPI::readcommand8(uint8_t, uint8_t)':
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:194:22: error: 'GPIO' was not declared in this scope
  194 |         #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
      |                      ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp:1010:3: note: in expansion of macro 'DC_C'
 1010 |   DC_C; tft_Write_8(0xD9);
      |   ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp: In member function 'virtual uint16_t TFT_eSPI::readPixel(int32_t, int32_t)':
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:240:22: error: 'GPIO' was not declared in this scope
  240 |         #define CS_H GPIO.out_w1ts = (1 << TFT_CS)//;GPIO.out_w1ts = (1 << TFT_CS)
      |                      ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp:1166:3: note: in expansion of macro 'CS_H'
 1166 |   CS_H;
      |   ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp: In member function 'void TFT_eSPI::readRectRGB(int32_t, int32_t, int32_t, int32_t, uint8_t*)':
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:240:22: error: 'GPIO' was not declared in this scope
  240 |         #define CS_H GPIO.out_w1ts = (1 << TFT_CS)//;GPIO.out_w1ts = (1 << TFT_CS)
      |                      ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp:2085:3: note: in expansion of macro 'CS_H'
 2085 |   CS_H;
      |   ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::setWindow(int32_t, int32_t, int32_t, int32_t)':
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:194:22: error: 'GPIO' was not declared in this scope
  194 |         #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
      |                      ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp:3304:5: note: in expansion of macro 'DC_C'
 3304 |     DC_C; tft_Write_8(TFT_CASET);
      |     ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp: In member function 'void TFT_eSPI::readAddrWindow(int32_t, int32_t, int32_t, int32_t)':
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:194:22: error: 'GPIO' was not declared in this scope
  194 |         #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
      |                      ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp:3380:3: note: in expansion of macro 'DC_C'
 3380 |   DC_C; tft_Write_8(TFT_CASET);
      |   ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::drawPixel(int32_t, int32_t, uint32_t)':
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:194:22: error: 'GPIO' was not declared in this scope
  194 |         #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
      |                      ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp:3562:7: note: in expansion of macro 'DC_C'
 3562 |       DC_C; tft_Write_8(TFT_CASET);
      |       ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:194:22: error: 'GPIO' was not declared in this scope
  194 |         #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
      |                      ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp:3569:7: note: in expansion of macro 'DC_C'
 3569 |       DC_C; tft_Write_8(TFT_PASET);
      |       ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/Processors/TFT_eSPI_ESP32_S3.h:194:22: error: 'GPIO' was not declared in this scope
  194 |         #define DC_C GPIO.out_w1tc = (1 << TFT_DC)//;GPIO.out_w1tc = (1 << TFT_DC)
      |                      ^~~~
/Users/nitinsharma/Documents/Arduino/libraries/TFT_eSPI/TFT_eSPI.cpp:3575:3: note: in expansion of macro 'DC_C'
 3575 |   DC_C; tft_Write_8(TFT_RAMWR);
      |   ^~~~

exit status 1

Compilation error: exit status 1

Well that kinda makes me feel a little bit better but it's not just me...

I don't know... No one seems to know what the issue is. My main project is for a wedding gift and I'm running out of time. I may have to pursue another means of accomplishing my main goal.

It's really frustrating because it was working perfectly just a week ago!

Do you have the latest boards manager release for ESP32?

Another thing to try is update ESP32 boards in boards manager if they need an update.
Then delete TFT_eSPI and download it from the library manager.

If that doesn't work then, if you give me install.h I can compile it and upload the hex file here....Your code verifies without errors for me, with install.h I'll be able to create a complete hex file.

The install.h is too large to post the code here hovever the example that im using is from this youtube video:

and the sorce code along with install.h is from this Github:

GitHub - VolosR/S3ProgressBar](YouTube)

any help to find a workagound would be greatly appreciated!

Do my latest instructions help or not?

I see the problem now....I think you are using the wrong boards manager for ESP32, the link below should be added to preferences and any other ESP32 links removed.
https://dl.espressif.com/dl/package_esp32_index.json