Go Down

Topic: Multiple (Shared) Source Codes (Read 345 times) previous topic - next topic

Renato_Ferreira

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?

Thanks!

Nick Gammon

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.

Go Up