Closed KurtE closed 2 years ago
Yes, I think this is a big problem of Arduino Framework. As at the beginning of Arduino, there is only one mcu type, that is AVR, so all libs without library.properties work. And then SAM appears and a lot of other mcus were added to the Arduino Framwork, it is difficult to manage the libs because you can not easily tell what lib is suitable for the given mcu. library.properties is a way to get the right lib, but not all libs have this file and follow the Arduino IDE 1.5: Library specification(https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification).
I do not use the library.properties file and find the libs according to the order of:
I will change the order to:
Thanks.
Actually you are maybe better off not changing the order. Hard to say
Sent from my iPad
On Apr 16, 2017, at 8:10 PM, S. Zhang notifications@github.com wrote:
Yes, I think this is a big problem of Arduino Framework. As at the beginning of Arduino, there is only one mcu type, that is AVR, so all libs without library.properties work. And then SAM appears and a lot of other mcus were added to the Arduino Framwork, it is difficult to manage the libs because you can not easily tell what lib is suitable for the given mcu. library.properties is a way to get the right lib, but not all libs have this file and follow the Arduino IDE 1.5: Library specification(https://github.com/arduino/Arduino/wiki/Arduino-IDE-1.5:-Library-specification).
I do not use the library.properties file and find the libs according to the order of:
sketch folder platform folder arduino app folder I will change the order to:
platform folder sketch folder arduino app folder Thanks.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
Actually the new change sort of confused me for awhile as all of a sudden my test app was not using my new code anymore...
Again hard to say what to do. I would probably revert to older behavior or make the order selectable...
Currently I am playing around with the SPI library, So I have a version of the SPI library in my/libraries directory. So currently when I build for the Teensy or AVR boards, it uses this one instead of the one that is installed as part of the platform. For example it uses the on in my sketch folder and not the one in /hardware/teensy/avr/libraries/SPI
Note: My version of the SPI library (sketch folder) has a file library.properties which looks like:
However right now I am also hacking up the Arduino Due version which is installed in the Arduino15 folders.
When I compile on using Arduino (1.8.2), it uses the version in the hardware folder as it's architecture is not avr.
As you can see it it's compile output:
But if I try to build with Stino, it uses the SPI library in the sketch folder