Hi all,
I’m building platformio.ini file that targets two different architectures (ESP8266 and Teensy3) and need to include different sets of libraries. I’m using lib_deps and lib_ignore successfully, but the LDF C++ parser seems to be failing for me here. It is including both libraries in the build, though it should only include the first.
The code in the header file looks like this:
#if TEENSY31 == 1
#include <ILI9341_t3.h>
#else
#include <Adafruit_ILI9341.h>
#endif
and the platformio.ini flag looks like this:
build_flags = -O -D TEENSY31=1 -UUSB_SERIAL -DARDUINO_ARCH_AVR -DUSB_SERIAL_HID -DLAYOUT_US_ENGLISH -I./src
But the graph looks like this:
|-- <ILI9341_t3>
| |-- <SPI> v1.0
...
|-- <Adafruit ILI9341> v1.0.0
| |-- <Adafruit GFX Library> v1.1.5
| |-- <SPI> v1.0
If I simply delete the line:
#include <Adafruit_ILI9341.h>
It builds fine.
What am I doing wrong?