Pages: [1]   Go Down
Author Topic: Multiple (Shared) Source Codes  (Read 329 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello all,

I am working on a project and would like to split the code into multiple files to organize it better. I know that the 1.0 IDE allows us to do so, but there is one problem: I would like to implement my libraries (classes) and share them among multiple .ino projects. For example, the same classes might be used in the main project and in a test project. Modifications should spread among those projects.

Is there any way I can do this without putting the classes at the default libraries directory?


Global Moderator
Offline Offline
Brattain Member
Karma: 499
Posts: 19065
Lua rocks!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There are two libraries directories. One that came with the IDE which has the "official" supplied libraries.

And an empty (possibly non-existent) directory at the same level as your sketches (the Sketchbook Location folder).

Put your library file(s) inside a directory inside "libraries" inside your Sketchbook Location folder. Then they are shared.

Pages: [1]   Go Up
Jump to: