diff options
| -rw-r--r-- | bs_button/.vscode/extensions.json | 7 | ||||
| -rw-r--r-- | bs_button/include/README | 39 | ||||
| -rw-r--r-- | bs_button/lib/README | 46 | ||||
| -rw-r--r-- | bs_button/test/README | 11 | ||||
| -rw-r--r-- | couch_light/lib/readme.txt | 36 | ||||
| -rw-r--r-- | couch_light/src/main.cpp (renamed from couch_light/src/couch_light.cpp) | 0 | ||||
| -rw-r--r-- | lr_switch/lib/readme.txt | 36 | ||||
| -rw-r--r-- | lr_switch/src/main.cpp (renamed from lr_switch/src/lr_switch.cpp) | 0 | ||||
| -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 | ||||
| -rw-r--r-- | rgbtv_light/lib/readme.txt | 36 | ||||
| -rw-r--r-- | rgbtv_light/src/main.cpp (renamed from rgbtv_light/src/rgbtv_light.cpp) | 0 | ||||
| -rw-r--r-- | testnode/lib/readme.txt | 36 | ||||
| -rw-r--r-- | testnode/src/main.cpp (renamed from testnode/src/testnode.cpp) | 0 | ||||
| -rw-r--r-- | tv_light/lib/readme.txt | 36 | ||||
| -rw-r--r-- | tv_light/src/main.cpp (renamed from tv_light/src/tv_light.cpp) | 0 |
18 files changed, 0 insertions, 357 deletions
diff --git a/bs_button/.vscode/extensions.json b/bs_button/.vscode/extensions.json deleted file mode 100644 index 8281e64..0000000 --- a/bs_button/.vscode/extensions.json +++ /dev/null | |||
| @@ -1,7 +0,0 @@ | |||
| 1 | { | ||
| 2 | // See http://go.microsoft.com/fwlink/?LinkId=827846 | ||
| 3 | // for the documentation about the extensions.json format | ||
| 4 | "recommendations": [ | ||
| 5 | "platformio.platformio-ide" | ||
| 6 | ] | ||
| 7 | } \ No newline at end of file | ||
diff --git a/bs_button/include/README b/bs_button/include/README deleted file mode 100644 index 194dcd4..0000000 --- a/bs_button/include/README +++ /dev/null | |||
| @@ -1,39 +0,0 @@ | |||
| 1 | |||
| 2 | This directory is intended for project header files. | ||
| 3 | |||
| 4 | A header file is a file containing C declarations and macro definitions | ||
| 5 | to be shared between several project source files. You request the use of a | ||
| 6 | header file in your project source file (C, C++, etc) located in `src` folder | ||
| 7 | by including it, with the C preprocessing directive `#include'. | ||
| 8 | |||
| 9 | ```src/main.c | ||
| 10 | |||
| 11 | #include "header.h" | ||
| 12 | |||
| 13 | int main (void) | ||
| 14 | { | ||
| 15 | ... | ||
| 16 | } | ||
| 17 | ``` | ||
| 18 | |||
| 19 | Including a header file produces the same results as copying the header file | ||
| 20 | into each source file that needs it. Such copying would be time-consuming | ||
| 21 | and error-prone. With a header file, the related declarations appear | ||
| 22 | in only one place. If they need to be changed, they can be changed in one | ||
| 23 | place, and programs that include the header file will automatically use the | ||
| 24 | new version when next recompiled. The header file eliminates the labor of | ||
| 25 | finding and changing all the copies as well as the risk that a failure to | ||
| 26 | find one copy will result in inconsistencies within a program. | ||
| 27 | |||
| 28 | In C, the usual convention is to give header files names that end with `.h'. | ||
| 29 | It is most portable to use only letters, digits, dashes, and underscores in | ||
| 30 | header file names, and at most one dot. | ||
| 31 | |||
| 32 | Read more about using header files in official GCC documentation: | ||
| 33 | |||
| 34 | * Include Syntax | ||
| 35 | * Include Operation | ||
| 36 | * Once-Only Headers | ||
| 37 | * Computed Includes | ||
| 38 | |||
| 39 | https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html | ||
diff --git a/bs_button/lib/README b/bs_button/lib/README deleted file mode 100644 index 6debab1..0000000 --- a/bs_button/lib/README +++ /dev/null | |||
| @@ -1,46 +0,0 @@ | |||
| 1 | |||
| 2 | This directory is intended for project specific (private) libraries. | ||
| 3 | PlatformIO will compile them to static libraries and link into executable file. | ||
| 4 | |||
| 5 | The source code of each library should be placed in a an own separate directory | ||
| 6 | ("lib/your_library_name/[here are source files]"). | ||
| 7 | |||
| 8 | For example, see a structure of the following two libraries `Foo` and `Bar`: | ||
| 9 | |||
| 10 | |--lib | ||
| 11 | | | | ||
| 12 | | |--Bar | ||
| 13 | | | |--docs | ||
| 14 | | | |--examples | ||
| 15 | | | |--src | ||
| 16 | | | |- Bar.c | ||
| 17 | | | |- Bar.h | ||
| 18 | | | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html | ||
| 19 | | | | ||
| 20 | | |--Foo | ||
| 21 | | | |- Foo.c | ||
| 22 | | | |- Foo.h | ||
| 23 | | | | ||
| 24 | | |- README --> THIS FILE | ||
| 25 | | | ||
| 26 | |- platformio.ini | ||
| 27 | |--src | ||
| 28 | |- main.c | ||
| 29 | |||
| 30 | and a contents of `src/main.c`: | ||
| 31 | ``` | ||
| 32 | #include <Foo.h> | ||
| 33 | #include <Bar.h> | ||
| 34 | |||
| 35 | int main (void) | ||
| 36 | { | ||
| 37 | ... | ||
| 38 | } | ||
| 39 | |||
| 40 | ``` | ||
| 41 | |||
| 42 | PlatformIO Library Dependency Finder will find automatically dependent | ||
| 43 | libraries scanning project source files. | ||
| 44 | |||
| 45 | More information about PlatformIO Library Dependency Finder | ||
| 46 | - https://docs.platformio.org/page/librarymanager/ldf.html | ||
diff --git a/bs_button/test/README b/bs_button/test/README deleted file mode 100644 index df5066e..0000000 --- a/bs_button/test/README +++ /dev/null | |||
| @@ -1,11 +0,0 @@ | |||
| 1 | |||
| 2 | This directory is intended for PIO Unit Testing and project tests. | ||
| 3 | |||
| 4 | Unit Testing is a software testing method by which individual units of | ||
| 5 | source code, sets of one or more MCU program modules together with associated | ||
| 6 | control data, usage procedures, and operating procedures, are tested to | ||
| 7 | determine whether they are fit for use. Unit testing finds problems early | ||
| 8 | in the development cycle. | ||
| 9 | |||
| 10 | More information about PIO Unit Testing: | ||
| 11 | - https://docs.platformio.org/page/plus/unit-testing.html | ||
diff --git a/couch_light/lib/readme.txt b/couch_light/lib/readme.txt deleted file mode 100644 index 3f9e008..0000000 --- a/couch_light/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/en/stable/librarymanager/ldf.html | ||
diff --git a/couch_light/src/couch_light.cpp b/couch_light/src/main.cpp index b99381a..b99381a 100644 --- a/couch_light/src/couch_light.cpp +++ b/couch_light/src/main.cpp | |||
diff --git a/lr_switch/lib/readme.txt b/lr_switch/lib/readme.txt deleted file mode 100644 index 3f9e008..0000000 --- a/lr_switch/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/en/stable/librarymanager/ldf.html | ||
diff --git a/lr_switch/src/lr_switch.cpp b/lr_switch/src/main.cpp index 673eb3a..673eb3a 100644 --- a/lr_switch/src/lr_switch.cpp +++ b/lr_switch/src/main.cpp | |||
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) |
diff --git a/rgbtv_light/lib/readme.txt b/rgbtv_light/lib/readme.txt deleted file mode 100644 index 3f9e008..0000000 --- a/rgbtv_light/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/en/stable/librarymanager/ldf.html | ||
diff --git a/rgbtv_light/src/rgbtv_light.cpp b/rgbtv_light/src/main.cpp index 98120a6..98120a6 100644 --- a/rgbtv_light/src/rgbtv_light.cpp +++ b/rgbtv_light/src/main.cpp | |||
diff --git a/testnode/lib/readme.txt b/testnode/lib/readme.txt deleted file mode 100644 index 3f9e008..0000000 --- a/testnode/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/en/stable/librarymanager/ldf.html | ||
diff --git a/testnode/src/testnode.cpp b/testnode/src/main.cpp index 999c32a..999c32a 100644 --- a/testnode/src/testnode.cpp +++ b/testnode/src/main.cpp | |||
diff --git a/tv_light/lib/readme.txt b/tv_light/lib/readme.txt deleted file mode 100644 index 3f9e008..0000000 --- a/tv_light/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/en/stable/librarymanager/ldf.html | ||
diff --git a/tv_light/src/tv_light.cpp b/tv_light/src/main.cpp index caf3a6e..caf3a6e 100644 --- a/tv_light/src/tv_light.cpp +++ b/tv_light/src/main.cpp | |||
