Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a60ef42

Browse files
author
jantje
committedNov 21, 2017
1 parent 8cc506b commit a60ef42

File tree

1 file changed

+28
-16
lines changed

1 file changed

+28
-16
lines changed
 
Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,45 @@
11
How to add a library - Arduino Eclipse Plugin!
22
=====
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.
1020

1121
V3
1222
-----
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"...
1729

1830
V2 and V3
1931
-----
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.
2335
![import library](http://iloapp.baeyens.it/data/_gallery/public/1/137950377839940200_resized.png)
2436

2537

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.
2739
Note: from march 2015 there is no more subsections (hardware/arduino/library) Al libraries are sorted alphabetically.
2840

2941

3042
**Party success**
31-
43+
3244
1. drink a beer
3345
2. [Become a patron of jantje](http://eclipse.baeyens.it/donate.html "thanks")

0 commit comments

Comments
 (0)
Please sign in to comment.