diff options
| author | manuel <manuel@mausz.at> | 2020-03-17 12:00:59 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2020-03-17 12:00:59 +0100 |
| commit | f0ecb4d38fff522c72905a8551355ca925381fa3 (patch) | |
| tree | 44df19413a3ea38b2729f2ba223b9c3be5b27af3 /oliver | |
| parent | 1fe1e04f903aaedf4bcde0ae85f58f6644ccedd5 (diff) | |
| download | arduino-f0ecb4d38fff522c72905a8551355ca925381fa3.tar.gz arduino-f0ecb4d38fff522c72905a8551355ca925381fa3.tar.bz2 arduino-f0ecb4d38fff522c72905a8551355ca925381fa3.zip | |
platform io cleanup
Diffstat (limited to 'oliver')
| -rw-r--r-- | oliver/dr_desk/lib/readme.txt | 36 | ||||
| -rw-r--r-- | oliver/dr_desk/src/main.cpp (renamed from oliver/dr_desk/src/dr_desk.cpp) | 1 | ||||
| -rw-r--r-- | oliver/lr_stripes/lib/readme.txt | 36 | ||||
| -rw-r--r-- | oliver/lr_stripes/src/main.cpp (renamed from oliver/lr_stripes/src/lr_stripes.cpp) | 1 |
4 files changed, 0 insertions, 74 deletions
diff --git a/oliver/dr_desk/lib/readme.txt b/oliver/dr_desk/lib/readme.txt deleted file mode 100644 index dbadc3d..0000000 --- a/oliver/dr_desk/lib/readme.txt +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 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 | ||
diff --git a/oliver/dr_desk/src/dr_desk.cpp b/oliver/dr_desk/src/main.cpp index 6f31b76..706996b 100644 --- a/oliver/dr_desk/src/dr_desk.cpp +++ b/oliver/dr_desk/src/main.cpp | |||
| @@ -4,7 +4,6 @@ | |||
| 4 | #include <WiFiManager.h> | 4 | #include <WiFiManager.h> |
| 5 | #include <FastLED.h> | 5 | #include <FastLED.h> |
| 6 | #include <ESP8266httpUpdate.h> | 6 | #include <ESP8266httpUpdate.h> |
| 7 | #include "secrets.h" | ||
| 8 | 7 | ||
| 9 | #define _STR(s) #s | 8 | #define _STR(s) #s |
| 10 | #define STR(s) _STR(s) | 9 | #define STR(s) _STR(s) |
diff --git a/oliver/lr_stripes/lib/readme.txt b/oliver/lr_stripes/lib/readme.txt deleted file mode 100644 index dbadc3d..0000000 --- a/oliver/lr_stripes/lib/readme.txt +++ /dev/null | |||
| @@ -1,36 +0,0 @@ | |||
| 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 | ||
diff --git a/oliver/lr_stripes/src/lr_stripes.cpp b/oliver/lr_stripes/src/main.cpp index 6ad4282..b55a198 100644 --- a/oliver/lr_stripes/src/lr_stripes.cpp +++ b/oliver/lr_stripes/src/main.cpp | |||
| @@ -4,7 +4,6 @@ | |||
| 4 | #include <WiFiManager.h> | 4 | #include <WiFiManager.h> |
| 5 | #include <Bounce2.h> | 5 | #include <Bounce2.h> |
| 6 | #include <ESP8266httpUpdate.h> | 6 | #include <ESP8266httpUpdate.h> |
| 7 | #include "secrets.h" | ||
| 8 | 7 | ||
| 9 | #define _STR(s) #s | 8 | #define _STR(s) #s |
| 10 | #define STR(s) _STR(s) | 9 | #define STR(s) _STR(s) |
