I have this platform.ini:
[env:esp32] platform = espressif32 board = node32s framework = espidf monitor_speed = 115200 [env:mega2560] platform = atmelavr board = megaatmega2560 framework = arduino monitor_speed = 115200 [env:native] platform = native [env:esp8266] board = esp01_1m platform = espressif8266 framework = arduino monitor_speed = 115200
The trouble is I need to use a different SD library for the mega2560 and for the esp8266**
**failing that i’d just forgo the arduino framework on the ESP8266 altogether but i can’t get the espressif stuff to work with C++ code, only with C code. That’s an alternative (and preferred) solution but I’ve had no luck
So as far as using two different libraries with the same name, but for different builds, how do I do that without modifying the code for the libraries?