Skip to content

Commit 417b6d7

Browse files
author
jantje
committed
#1022 resizing didn't work
1 parent 82603ce commit 417b6d7

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

website/WebContent/fragments/how_to/create_a_library.md

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,43 +8,47 @@ With Sloeber you have a real development environment which allows you to modify
88
**start by having a project**
99
For sake of this demo I created a empty workspace and created a sketch in there.
1010
Here is what it looks like on my system:
11-
![freshly created sketch in empty workspace](http://eclipse.baeyens.it/img/lib_demo_1.png?width=750&height=480)
11+
<img src="http://eclipse.baeyens.it/img/lib_demo_1.PNG" alt="freshly created sketch in empty workspace" height="400" width="600">
12+
1213

1314
**write your first version of the library code**
1415
In most cases you will start by simply creating a class (right click the project and select new class) into an existing project.
1516
Later you will decide that this class/code is worth to be upgraded to a library.
1617
So we create a class in our project with the name of the library we want to create.
17-
![My first lib class](http://eclipse.baeyens.it/img/lib_demo_2.png?width=750&height=380)
18+
<img src="http://eclipse.baeyens.it/img/lib_demo_2.PNG" alt="My first lib class" height="400" width="600">
1819

1920
**Outside of eclipse: create a subfolder with the library name in one of your private library folders**
2021
As I have C:\Users\jan\Documents\Arduino\libraries listed as a private Library; I created a folder in C:\Users\jan\Documents\Arduino\libraries with the name Libcodeclass.
21-
Add a file with extension .h in the folder (I used findMe.h)
22-
![Create a llibrary placeholder](http://eclipse.baeyens.it/img/lib_demo_3?width=750&height=380)
22+
Add a file with extension .h in the folder (I used findMe.h)
23+
<img src="http://eclipse.baeyens.it/img/lib_demo_3.PNG" alt="Create a llibrary placeholder" height="400" width="600">
2324

2425
Note that it is a good practice to have the same name for the folder as for the header file (that is even with casing).
2526

2627
**Import the library into your project**
2728
Because we created a "folder containing code" on disk the plugin can add the "library" (with the foldername) to the project.
2829
Click Arduino in the menu bar, select "Add a library to the selected project" and select the "library" (folder) you created above (LibCodeDemo).
2930

30-
![Add the library to your project](http://eclipse.baeyens.it/img/lib_demo_4.png?width=750&height=480)
31+
<img src="http://eclipse.baeyens.it/img/lib_demo_4.png" alt="Add the library to your project" >
32+
3133
>If the library is not showing up.
3234
Check wether the root folder is actualy a private library folder.
3335
Check if you added the header file to your library.
3436

3537
Select Finish and your project should look something like:
3638

37-
![a empty library folder](http://eclipse.baeyens.it/img/lib_demo_5.png?width=750&height=380)
39+
<img src="http://eclipse.baeyens.it/img/lib_demo_5.PNG" alt="a empty library folder" height="400" width="600">
40+
3841
Note the small arrow in the folder icon which indicates this is a linked folder.
3942

4043
**Drag and drop the class to the library folder**
4144
Drag and drop the header file and source code to the library folder.
4245
Do not forget to delete the findMe.h file.
43-
![we are done](http://eclipse.baeyens.it/img/lib_demo_6.png?width=750&height=480)
46+
<img src="http://eclipse.baeyens.it/img/lib_demo_6.PNG" alt="we are done" height="400" width="600">
47+
4448

4549
That is all there is to it.
4650

47-
>IMPORTANT Your library code is now no longer in your workspace!!
51+
>IMPORTANT Your library code is no longer in your workspace folder on disk!!
4852
4953

5054

0 commit comments

Comments
 (0)