Manage the libraries¶
There are four kinds of libraries and a variant.
Core libraries¶
The core libraries correspond to the Arduino SDK and include all the basic functions required for development. Each platform provides its own set compatible with the Wiring and Arduino framework.
One single #include statement in the main sketch and in the header files includes all of them. The main Makefile does not need to mention the Arduino SDK as it is included by default.
Application libraries¶
The application libraries are optional libraries to provide additional features, like managing the specific I²C and SPI ports.
They require to be explicitly mentioned with the #include statement on the main sketch and listed on the main Makefile after the APP_LIBS_LIST variable.
User’s libraries¶
The user’s libraries are developed, or downloaded and installed, by the user, and stored under the Library sub-folder on the sketchbook folder.
They require to be explicitly mentioned with the #include statement on the main sketch and listed on the main Makefile after the USER_LIBS_LIST variable.
The user’s libraries support the pre-compiled variant.
Local libraries¶
The local libraries are part of the project and located on the same folder as the main sketch.
They require to be explicitly mentioned by the #include statement on the main sketch. By default, all the local libraries are included. They could be listed listed on the main Makefile after the LOCAL_LIBS_LIST variable.
The local libraries support the pre-compiled variant.
Pre-compiled variant¶
emCode also manages a variant for the local and user’s libraries, the pre-compiled libraries.
Instead of using the source code, the pre-compiled libraries are already built and ready to use.
The local pre-compiled libraries are part of the project and located on the same folder as the main sketch.
The user’s pre-compiled libraries are located on the libraries sub-folder under the sketchbook folder, along the header file of the library.
Like standard libraries, pre-compiled libraries require to be explicitly mentioned by the #include statement on the main sketch, and mentioned on the main Makefile.