-->
Page 1 of 1

two libraries with same name cause problems

PostPosted: Wed Apr 20, 2016 3:03 pm
by Oldmicroguy
Here is my problem:
I would like to use the Adafruit_ILI9341 TFT-LCD library for the same sketches for both AVR and ESP8266. However, the Adafruit library https://github.com/adafruit/Adafruit_ILI9341/tree/1.0.1 only works for AVR and the library https://github.com/Links2004/Adafruit_ILI9341only works for ESP8266.

At the present time I have to manually delete the current version and install a different version when changing from one micro to the other. This is a big pain. Does anyone have a suggestion on how to correct this?

Oldmicroguy

Re: two libraries with same name cause problems

PostPosted: Thu Apr 21, 2016 4:05 am
by schufti
you can just rename the esp one to e.g. Adafruit_espILI9341.
you have to rename the directory, .c and .h file accordingly.

maybe it is also possible by just editing the "architectures" entry in file library.properties ???

Re: two libraries with same name cause problems

PostPosted: Thu Apr 21, 2016 1:13 pm
by Oldmicroguy
Thanks schufti,

That was a good tip. I can but both libraries in my sketchbook/ libraries folder and by editing the "architectures" entry to either "arduino" or "esp8266" the Arduino IDE will pick the correct library.

Oldmicroguy