makeEspArduino
makeEspArduino copied to clipboard
compiling a sketch with Bodmers TFT_eSPI library
Hi,
I recently got my hands on a LilyGo TTGO display. This is an esp32 with a TTF SPI display.
The instructions say to edit a User_Setup_Select.h file to select the proper hardware. Which I did.
But when trying to compile any of the examples in the TFT_eSPI library with makeEspArduino (mEA), I get a bunch of errors about PROGMEM not being defined and unknown classes.
Looking at the files that give these errors, I find that there are no header files included. Adding these manually gets me only so far. At some point mEA tries to compile a file for architecture that's not available on the TTGO.
I tried compiling with the Arduino IDE, and there it compiles just fine. My guess is that the Arduino IDE just concats all source files into one big file and then compiles. That means that some pieces will be blocked off by #ifdefined statements. Whereas mEA just tries to compile all files individually. And without headers that fails.
Are there other users of mEA who have been able to use TFT_eSPI?