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
ESP32 S2 TFT TFT_CS has not been defined
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_carter
- Posts: 29150
- Joined: Tue Nov 29, 2016 2:45 pm
Re: ESP32 S2 TFT TFT_CS has not been defined
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
https://github.com/espressif/arduino-es ... .txt#L8377
which defines the TFT pins:
https://github.com/espressif/arduino-es ... .h#L29-L33
Please be positive and constructive with your questions and comments.