|
1 | 1 | How to add a library - Arduino Eclipse Plugin!
|
2 | 2 | =====
|
3 |
| -Part of the power of arduino is the multitude of libraries available to the users. |
4 |
| -Therefore this is a basic functionality of the Arduino eclipse plugin. |
5 |
| -The Arduino core team has done a good job in hiding the complexity of using libraries. In a real IDE you do not want to hide this complexity to the full extend that the Arduino IDE does. As such there is some more visibility (read work and possibilities) in regards to libraries. |
6 |
| -In your project there is a subfolder called libraries. This folder contains the libraries that have been imported into your project. This list should only contain libraries you really use. |
7 |
| -Adding a library to this folder is what we call importing a library. |
8 |
| -It is very easy to import a library into your project. |
9 |
| -In V3 it is even as simple as in the Arduino IDE. |
| 3 | +Part of the power of arduino is the multitude of libraries available to the users. |
| 4 | +Therefore this is a basic functionality of Sloeber. |
| 5 | +Just like in the Arduino IDE there is a library manager to install libraries and a "add library to sketch" functionality. |
| 6 | +The Arduino core team has done a good job in hiding the complexity of using libraries. In a real IDE you do not want to hide this complexity to the full extend that the Arduino IDE does. As such there is some more visibility (read work and possibilities) in regards to libraries. |
| 7 | +In your project there is a subfolder called libraries. This folder contains the libraries that have been imported into your project. This list should only contain libraries you really use. |
| 8 | +Adding a library to this folder is what we call importing a library. |
| 9 | +It is very easy to import a library into your project. |
| 10 | + |
| 11 | +Note that in all versions the libraries are linked; so changing library code changes the code for all your projects. |
| 12 | + |
| 13 | +V4 |
| 14 | +----- |
| 15 | +Simply add the include statement to your code. |
| 16 | +Save your file. |
| 17 | +The automatic library includer will import the library into your project and install the library if not yet installed (only if the library folder name is header - ".h".) |
| 18 | +You may have to wait a while before the indexer has indexed the source code and the library includer can kick in. |
| 19 | +The auto import and auto install can be disabled in windows->preferences->arduino settings. |
10 | 20 |
|
11 | 21 | V3
|
12 | 22 | -----
|
13 |
| -Simply add the include statement to your code. |
14 |
| -Save your file. |
15 |
| -The automatic library includer will import the library into your project. |
16 |
| -You may have to wait a while before the indexer has indexed the source code and the library includer can kick in. |
| 23 | +Simply add the include statement to your code. |
| 24 | +Save your file. |
| 25 | +The automatic library includer will import the library into your project if the library is installed. |
| 26 | +You may have to wait a while before the indexer has indexed the source code and the library includer can kick in. |
| 27 | +The auto import can be disabled in windows->preferences->arduino settings. |
| 28 | +From V3 onwards all libraries are shown in one list. There is no longer the grouping of "arduino libs" "Arduino hardware libs"... |
17 | 29 |
|
18 | 30 | V2 and V3
|
19 | 31 | -----
|
20 |
| - |
21 |
| -Select the project you want the library to add to. In the main menu select "Arduino->add a library to the selected project". |
22 |
| -A dialog box will pop up showing all available libraries. |
| 32 | + |
| 33 | +Select the project you want the library to add to. In the main menu select "Arduino->add a library to the selected project". |
| 34 | +A dialog box will pop up showing all available libraries. |
23 | 35 | 
|
24 | 36 |
|
25 | 37 |
|
26 |
| -Note: that in contrast to the arduino IDE you will still need to add the include directives to your ino file. |
| 38 | +Note: that in contrast to the arduino IDE you will still need to add the include directives to your ino file. |
27 | 39 | Note: from march 2015 there is no more subsections (hardware/arduino/library) Al libraries are sorted alphabetically.
|
28 | 40 |
|
29 | 41 |
|
30 | 42 | **Party success**
|
31 |
| - |
| 43 | + |
32 | 44 | 1. drink a beer
|
33 | 45 | 2. [Become a patron of jantje](http://eclipse.baeyens.it/donate.html "thanks")
|
0 commit comments