diff options
| author | manuel <manuel@mausz.at> | 2017-07-02 21:15:10 +0200 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2017-07-02 21:15:10 +0200 |
| commit | 39078df17a067a2838e019f535f58c626f386852 (patch) | |
| tree | 056a9797e9e9835f4c964b0d128f8d8cb62debce /oliver/dr_desk/lib | |
| parent | 950b0142c53ae0b2a847dd6861acfb75a15f7e5f (diff) | |
| download | arduino-39078df17a067a2838e019f535f58c626f386852.tar.gz arduino-39078df17a067a2838e019f535f58c626f386852.tar.bz2 arduino-39078df17a067a2838e019f535f58c626f386852.zip | |
oliver/dr_desk
Diffstat (limited to 'oliver/dr_desk/lib')
| -rw-r--r-- | oliver/dr_desk/lib/readme.txt | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/oliver/dr_desk/lib/readme.txt b/oliver/dr_desk/lib/readme.txt new file mode 100644 index 0000000..dbadc3d --- /dev/null +++ b/oliver/dr_desk/lib/readme.txt | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | |||
| 2 | This directory is intended for the project specific (private) libraries. | ||
| 3 | PlatformIO will compile them to static libraries and link to executable file. | ||
| 4 | |||
| 5 | The source code of each library should be placed in separate directory, like | ||
| 6 | "lib/private_lib/[here are source files]". | ||
| 7 | |||
| 8 | For example, see how can be organized `Foo` and `Bar` libraries: | ||
| 9 | |||
| 10 | |--lib | ||
| 11 | | |--Bar | ||
| 12 | | | |--docs | ||
| 13 | | | |--examples | ||
| 14 | | | |--src | ||
| 15 | | | |- Bar.c | ||
| 16 | | | |- Bar.h | ||
| 17 | | |--Foo | ||
| 18 | | | |- Foo.c | ||
| 19 | | | |- Foo.h | ||
| 20 | | |- readme.txt --> THIS FILE | ||
| 21 | |- platformio.ini | ||
| 22 | |--src | ||
| 23 | |- main.c | ||
| 24 | |||
| 25 | Then in `src/main.c` you should use: | ||
| 26 | |||
| 27 | #include <Foo.h> | ||
| 28 | #include <Bar.h> | ||
| 29 | |||
| 30 | // rest H/C/CPP code | ||
| 31 | |||
| 32 | PlatformIO will find your libraries automatically, configure preprocessor's | ||
| 33 | include paths and build them. | ||
| 34 | |||
| 35 | More information about PlatformIO Library Dependency Finder | ||
| 36 | - http://docs.platformio.org/page/librarymanager/ldf.html | ||
