Xinyuan-LilyGO / TTGO-T-Display

MIT License
1.05k stars 337 forks source link

Getting GPIO Error #127

Open IBakeCookies opened 7 months ago

IBakeCookies commented 7 months ago

When I try to upload I get this error

In file included from c:\Users\****\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.h:48,
                 from c:\Users\****\Documents\Arduino\libraries\TFT_eSPI\TFT_eSPI.cpp:17:
c:\Users\****\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32.c: In function 'void dc_callback(spi_transaction_t*)':
c:\Users\****\Documents\Arduino\libraries\TFT_eSPI\Processors/TFT_eSPI_ESP32.h:115:22: error: 'GPIO' was not declared in this scope
  115 |         #define DC_D GPIO.out_w1ts = (1 << TFT_DC)//;GPIO.out_w1ts = (1 << TFT_DC)
      |    

in User_Setup.h I have #define ILI9341_DRIVER

in User_Setup_Select.h I have #include <User_Setups/Setup25_TTGO_T_Display.h> // Setup file for ESP32 and TTGO T-Display ST7789V SPI bus TFT

Also for some reason the FactoryTest directory does exist, but Arduino never sees it

I tried looking around and using other setups, which will make the device work, but not the screen...

Mr-PauI commented 4 months ago

I am having this exact same issue. Attempting to compile the factory test. image

bagonyi commented 4 months ago

I have fixed this by downgrading the esp32 boards package to version 2.0.17 (from 3.x) in the Arduino IDE:

I have also removed the TFT_eSPI library provided by this GitHub repo, and installed the stock version of the TFT_eSPI package via the Library Manager:

After installing the library, I edited ~/Documents/Arduino/libraries/TFT_eSPI/User_Setup_Select.h:

  1. Commented out line #include <User_Setup.h> // Default setup is root library folder
  2. Uncommented line #include <User_Setups/Setup25_TTGO_T_Display.h> // Setup file for ESP32 and TTGO T-Display ST7789V SPI bus TFT
image
albfan commented 1 week ago

downgrading to esp32 2.0.17 was enough for me. I need to choose ESP32 Dev Module as using lilygo T-Display there's some error with flags