ESP32 S2 TFT TFT_CS has not been defined

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
csierra67
 
Posts: 7
Joined: Tue Feb 28, 2023 11:28 am

ESP32 S2 TFT TFT_CS has not been defined

Post by csierra67 »

I am starting to use this board under Arduino and compiling the factory_setting sketch.

However line 19
Adafruit_ST7789 display = Adafruit_ST7789(TFT_CS, TFT_DC, TFT_RST);

produces the error TFT_CS has not been defined under this scope. I compiled the sketch for Adafruit ESP32 Feather (did not find an Adafruit ESP 32 TFT board my Arduino software..)
How can I fix the error ?
Thanks a lot for your suggestions

csierra67

User avatar
adafruit_support_carter
 
Posts: 29150
Joined: Tue Nov 29, 2016 2:45 pm

Re: ESP32 S2 TFT TFT_CS has not been defined

Post by adafruit_support_carter »

Update your ESP32 BSP. There should be a "Adafruit Feather ESP32-S2 TFT" in the boards list.

https://github.com/espressif/arduino-es ... .txt#L8377

which defines the TFT pins:
https://github.com/espressif/arduino-es ... .h#L29-L33

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”