Closed gadgetmies closed 1 month ago
@gadgetmies Hi there!
Let's investigate! I'd like to clarify a few things first. Is this the board in question? Since display is color-capable (and ST7789V based, according to specs), I assume you are using Adafruit GFX version of GEM (and probably the latest 1.5.2 one). Is this correct? Does Adafruit GFX examples compile and run on that board?
The board is probably a clone of the one you linked to, but seems identical: https://www.aliexpress.com/item/1005005970553639.html. I am using Adafruit GFX version of GEM and would expect the version to be the latest as I installed it using the Arduino IDE library manager just yesterday. I will check the versions and whether the Adafruit GFX examples compile later today.
Seems like example compiles successfully for ST7789 based display with Adafruit_ST7789.h library using ESP32 Dev Module settings (which is a viable solution for this board according to "Technology Support" section on the site of original board).
It also supports initialization via TFT_eSPI
but I didn't test that one (but googled some possible issues with that here).
ST7789-specific modifications of the sketch marked with red here:
Also it seems that recent versions of compiler have more strict rules regarding initializer lists and designated initializers (notably C++20) . That may be the reason you are seeing this particular error.
AFAIK, there is no straightforward way to change compiler version in Arduino IDE. And most community members don't recommend it either. Though it might be not a version per se, but some configuration settings of default Arduino C++11 compiler?
Error messages now addressed and fixed in release 1.5.3.
The issue was due to more strict regulations of designated initializers in recent compilers starting with C++20. And recent update of ESP32 core version 3.0 (that comes with boards update via Arduino IDE) uses C++23.
Error messages now addressed and fixed in release 1.5.3.
Awesome! Thank you so much @Spirik!
I'm trying to build the Example-01_Basic.ino for the LilyGo TTGO T-Display. When compiling I get a lot of errors such as the following:
The failing compile command is (likely) as follows:
The error seems like it could be caused by the use of a different compiler or a different version of the compiler. Has anyone else had similar issues or know what could cause such errors?