Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Conversation

@MrPointer
Copy link
Member

@MrPointer MrPointer commented Sep 20, 2018

Until this PR, 3rd Party Arduino libraries have been treated as user libraries, which are different.
The problem is that even though they're 3rd party, those libraries conform to the Arduino library standard, include the required library.properties file and have a very similar source structure to the Built-in libraries.
Moreover, they're usually dependent on an Arduino platform, which requires them to be "first-class" libraries.

Now, these libraries can be treated as they should by calling the add_arduino_library function.
The downside of this API is that one would have to manually pass the library's sources, but on the other hand - It gives it the freedom to store the library anywhere it'd like in the host system.
If however a user still wants to keep using the find_arduino_library API, it can do so by placing the 3rd party library directory under the SDK's libraries directory, and pass the 3RD_PARTY option to the function.

This PR also added an example using a 3rd party library named Adafruit_NeoPixel.

Fixes #17.

It can now be used to add 3rd-party arduino libraries located outside the SDK, or having a name that doesn't comply with the current used scheme (Will be fixed soon).
On the same note - Added an example that uses a 3rd-party/custom arduino library, leveraging the above.
It instructs it to find the library without altering its' name to an "Arduino-Compliant" name.
@MrPointer MrPointer merged commit 7d7427b into develop Sep 20, 2018
@MrPointer MrPointer deleted the feature/3rd-party-arduino-libs branch September 20, 2018 15:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants