Arduino IDE 1.8.19 stopped compiling for Lilygo T-Display S3

It was working for months and then it stopped compiling. It does not matter what the script is, I get the same error(including examples). I have uninstalled/reinstalled the IDE, created a new libraries folder, and reinstalled the libraries according to the Lilygo github. I have checked that the appropriate URL is in the additional board manager

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

Board Manger is set to EPS32S3 Dev Module

I might try a different PC, I can not figure our what has gotten corrupted.

If anyone can help, I would really appreciate it!

I get the following error



In file included from C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.h:94,
                 from C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:16:
C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c: In member function 'uint8_t TFT_eSPI::readByte()':
C:\Users\paulh\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\paulh\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\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:20:
C:\Users\paulh\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\paulh\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c: In member function 'void TFT_eSPI::pushBlock(uint16_t, uint32_t)':
C:\Users\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c: In member function 'void TFT_eSPI::pushSwapBytePixels(const void*, uint32_t)':
C:\Users\paulh\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\paulh\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\paulh\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\paulh\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32_S3.c: In member function 'void TFT_eSPI::pushPixels(const void*, uint32_t)':
C:\Users\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::begin_tft_write()':
C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\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\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:80:5: note: in expansion of macro 'CS_L'
   80 |     CS_L;
      |     ^~~~
C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::begin_nin_write()':
C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\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\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:92:5: note: in expansion of macro 'CS_L'
   92 |     CS_L;
      |     ^~~~
C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::end_tft_write()':
C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\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\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:106:7: note: in expansion of macro 'CS_H'
  106 |       CS_H;
      |       ^~~~
C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::end_nin_write()':
C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\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\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:121:7: note: in expansion of macro 'CS_H'
  121 |       CS_H;
      |       ^~~~
C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::begin_tft_read()':
C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\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\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:147:4: note: in expansion of macro 'CS_L'
  147 |    CS_L;
      |    ^~~~
C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::end_tft_read()':
C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\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\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:169:24: note: in expansion of macro 'CS_H'
  169 |    if(!inTransaction) {CS_H;}
      |                        ^~~~
C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::spiwrite(uint8_t)':
C:\Users\paulh\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\paulh\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\paulh\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\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::writecommand(uint8_t)':
C:\Users\paulh\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\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:964:3: note: in expansion of macro 'DC_C'
  964 |   DC_C;
      |   ^~~~
C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::writedata(uint8_t)':
C:\Users\paulh\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\paulh\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\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'uint8_t TFT_eSPI::readcommand8(uint8_t, uint8_t)':
C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\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\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:1035:3: note: in expansion of macro 'CS_L'
 1035 |   CS_L;
      |   ^~~~
C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual uint16_t TFT_eSPI::readPixel(int32_t, int32_t)':
C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\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\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:1113:25: note: in expansion of macro 'CS_L'
 1113 |   if (!inTransaction) { CS_L; } // CS_L can be multi-statement
      |                         ^~~~
C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\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\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:1145:27: note: in expansion of macro 'CS_H'
 1145 |     if (!inTransaction) { CS_H; } // CS_H can be multi-statement
      |                           ^~~~
C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'void TFT_eSPI::readRect(int32_t, int32_t, int32_t, int32_t, uint16_t*)':
C:\Users\paulh\Documents\Arduino\libraries\TFT_eSPI\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\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:1237:3: note: in expansion of macro 'CS_L'
 1237 |   CS_L;
      |   ^~~~
C:\Users\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::drawPixel(int32_t, int32_t, uint32_t)':
C:\Users\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp: In member function 'virtual void TFT_eSPI::pushColor(uint16_t)':
C:\Users\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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\paulh\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
Error compiling for board ESP32S3 Dev Module.

Did you do a recent upgrade of the ESP32 board package?
Did you make changes to the code?

Please post your code; don't forget to use code tags as described in How to get the best out of this forum.

And while on the subject of code tags, please edit your post, select the full error output and click the <CODE/> button; next save your post.

Code tags make it easier to read and copy and the forum software will display it correctly (e.g. a * will not result in italics).

I haven't checked the details, but just roll your esp32 boards back to 2.0.17 and see if that fixes it.

I did hit one of the update notice buttons. I did not make changes to the code and I get the same error with the example code that is provided from Lilygo.

If it was the one to upgrade the board packages, follow the advise in post #3 and see if that solves the problem. If so, you're sorted for now but you're advised to read, at some stage, Migration from 2.x to 3.0 - - — Arduino ESP32 latest documentation.

Thanks for you help. I did try that 1st and sadly it did not work.

Try the official esp32 boards url, it is
https://espressif.github.io/arduino-esp32/package_esp32_index.json

I think I solved it. I needed to delete all remnants of previous installs per this post.
Thanks to all that tried to help! https://forum.arduino.cc/t/how-can-i-uninstall-and-purge-all-remnants-of-an-arduino-ide-install/1198801ll the remnants of the previous install.

Now I have to remember what I was trying to mod in the first place!! :slight_smile: