diff options
| author | manuel <manuel@mausz.at> | 2020-02-05 13:01:01 +0100 |
|---|---|---|
| committer | manuel <manuel@mausz.at> | 2020-02-05 13:01:01 +0100 |
| commit | e60bc43eb30ab72ec9fdfae581058bf8acfd8586 (patch) | |
| tree | cbfd8665cfab33e4e4298d3418b62b9542641771 | |
| parent | 95e5f22a558beeaac8895400e406837656a057e0 (diff) | |
| download | arduino-e60bc43eb30ab72ec9fdfae581058bf8acfd8586.tar.gz arduino-e60bc43eb30ab72ec9fdfae581058bf8acfd8586.tar.bz2 arduino-e60bc43eb30ab72ec9fdfae581058bf8acfd8586.zip | |
update to platform IO
23 files changed, 223 insertions, 19 deletions
diff --git a/couch_light/.gitignore b/couch_light/.gitignore index e05273b..89cc49c 100644 --- a/couch_light/.gitignore +++ b/couch_light/.gitignore | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | .pioenvs | 1 | .pio |
| 2 | .clang_complete | 2 | .vscode/.browse.c_cpp.db* |
| 3 | .gcc-flags.json | 3 | .vscode/c_cpp_properties.json |
| 4 | .piolibdeps \ No newline at end of file | 4 | .vscode/launch.json |
| 5 | .vscode/ipch | ||
diff --git a/couch_light/couch_light.ino b/couch_light/src/couch_light.cpp index b99381a..b99381a 100644 --- a/couch_light/couch_light.ino +++ b/couch_light/src/couch_light.cpp | |||
diff --git a/couch_light/src/couch_light.ino b/couch_light/src/couch_light.ino deleted file mode 120000 index 230ba97..0000000 --- a/couch_light/src/couch_light.ino +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | ../couch_light.ino \ No newline at end of file | ||
diff --git a/lr_switch/.gitignore b/lr_switch/.gitignore new file mode 100644 index 0000000..89cc49c --- /dev/null +++ b/lr_switch/.gitignore | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | .pio | ||
| 2 | .vscode/.browse.c_cpp.db* | ||
| 3 | .vscode/c_cpp_properties.json | ||
| 4 | .vscode/launch.json | ||
| 5 | .vscode/ipch | ||
diff --git a/lr_switch/lib/readme.txt b/lr_switch/lib/readme.txt new file mode 100644 index 0000000..3f9e008 --- /dev/null +++ b/lr_switch/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/en/stable/librarymanager/ldf.html | ||
diff --git a/lr_switch/platformio.ini b/lr_switch/platformio.ini new file mode 100644 index 0000000..6e0f132 --- /dev/null +++ b/lr_switch/platformio.ini | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | ; PlatformIO Project Configuration File | ||
| 2 | ; | ||
| 3 | ; Build options: build flags, source filter, extra scripting | ||
| 4 | ; Upload options: custom port, speed and extra flags | ||
| 5 | ; Library options: dependencies, extra library storages | ||
| 6 | ; | ||
| 7 | ; Please visit documentation for the other options and examples | ||
| 8 | ; http://docs.platformio.org/en/stable/projectconf.html | ||
| 9 | |||
| 10 | [platformio] | ||
| 11 | env_default = pro8MHzatmega328 | ||
| 12 | |||
| 13 | [env:miniatmega328] | ||
| 14 | platform=atmelavr | ||
| 15 | board=miniatmega328 | ||
| 16 | framework=arduino | ||
| 17 | |||
| 18 | [env:pro8MHzatmega328] | ||
| 19 | platform=atmelavr | ||
| 20 | board=pro8MHzatmega328 | ||
| 21 | framework=arduino | ||
| 22 | ; minicore/optirun uses 38400 for 8MHz | ||
| 23 | upload_speed=38400 | ||
| 24 | |||
| 25 | [platformio] | ||
| 26 | lib_dir=/home/manuel/coding/Arduino/libraries | ||
diff --git a/lr_switch/lr_switch.ino b/lr_switch/src/lr_switch.cpp index 673eb3a..673eb3a 100644 --- a/lr_switch/lr_switch.ino +++ b/lr_switch/src/lr_switch.cpp | |||
diff --git a/oliver/dr_desk/.gitignore b/oliver/dr_desk/.gitignore index 5dac9f5..89cc49c 100644 --- a/oliver/dr_desk/.gitignore +++ b/oliver/dr_desk/.gitignore | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | .pioenvs | 1 | .pio |
| 2 | .piolibdeps | 2 | .vscode/.browse.c_cpp.db* |
| 3 | .clang_complete | 3 | .vscode/c_cpp_properties.json |
| 4 | .gcc-flags.json | 4 | .vscode/launch.json |
| 5 | .vscode/ipch | ||
diff --git a/oliver/dr_desk/dr_desk.ino b/oliver/dr_desk/src/dr_desk.cpp index 0ff13e2..46bf8eb 100644 --- a/oliver/dr_desk/dr_desk.ino +++ b/oliver/dr_desk/src/dr_desk.cpp | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | #include <Arduino.h> | ||
| 1 | #include <ESP8266mDNS.h> | 2 | #include <ESP8266mDNS.h> |
| 2 | #include <ArduinoOTA.h> | 3 | #include <ArduinoOTA.h> |
| 3 | #include <PubSubClient.h> | 4 | #include <PubSubClient.h> |
diff --git a/oliver/dr_desk/src/dr_desk.ino b/oliver/dr_desk/src/dr_desk.ino deleted file mode 120000 index 0cdf13b..0000000 --- a/oliver/dr_desk/src/dr_desk.ino +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | ../dr_desk.ino \ No newline at end of file | ||
diff --git a/oliver/lr_stripes/.gitignore b/oliver/lr_stripes/.gitignore index 5dac9f5..89cc49c 100644 --- a/oliver/lr_stripes/.gitignore +++ b/oliver/lr_stripes/.gitignore | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | .pioenvs | 1 | .pio |
| 2 | .piolibdeps | 2 | .vscode/.browse.c_cpp.db* |
| 3 | .clang_complete | 3 | .vscode/c_cpp_properties.json |
| 4 | .gcc-flags.json | 4 | .vscode/launch.json |
| 5 | .vscode/ipch | ||
diff --git a/oliver/lr_stripes/lr_stripes.ino b/oliver/lr_stripes/src/lr_stripes.cpp index 2cd63d4..7059f8b 100644 --- a/oliver/lr_stripes/lr_stripes.ino +++ b/oliver/lr_stripes/src/lr_stripes.cpp | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | #include <Arduino.h> | ||
| 1 | #include <ESP8266mDNS.h> | 2 | #include <ESP8266mDNS.h> |
| 2 | #include <ArduinoOTA.h> | 3 | #include <ArduinoOTA.h> |
| 3 | #include <PubSubClient.h> | 4 | #include <PubSubClient.h> |
diff --git a/oliver/lr_stripes/src/lr_stripes.ino b/oliver/lr_stripes/src/lr_stripes.ino deleted file mode 120000 index a8026eb..0000000 --- a/oliver/lr_stripes/src/lr_stripes.ino +++ /dev/null | |||
| @@ -1 +0,0 @@ | |||
| 1 | ../lr_stripes.ino \ No newline at end of file | ||
diff --git a/rgbtv_light/.gitignore b/rgbtv_light/.gitignore new file mode 100644 index 0000000..89cc49c --- /dev/null +++ b/rgbtv_light/.gitignore | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | .pio | ||
| 2 | .vscode/.browse.c_cpp.db* | ||
| 3 | .vscode/c_cpp_properties.json | ||
| 4 | .vscode/launch.json | ||
| 5 | .vscode/ipch | ||
diff --git a/rgbtv_light/lib/readme.txt b/rgbtv_light/lib/readme.txt new file mode 100644 index 0000000..3f9e008 --- /dev/null +++ b/rgbtv_light/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/en/stable/librarymanager/ldf.html | ||
diff --git a/rgbtv_light/platformio.ini b/rgbtv_light/platformio.ini new file mode 100644 index 0000000..6e0f132 --- /dev/null +++ b/rgbtv_light/platformio.ini | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | ; PlatformIO Project Configuration File | ||
| 2 | ; | ||
| 3 | ; Build options: build flags, source filter, extra scripting | ||
| 4 | ; Upload options: custom port, speed and extra flags | ||
| 5 | ; Library options: dependencies, extra library storages | ||
| 6 | ; | ||
| 7 | ; Please visit documentation for the other options and examples | ||
| 8 | ; http://docs.platformio.org/en/stable/projectconf.html | ||
| 9 | |||
| 10 | [platformio] | ||
| 11 | env_default = pro8MHzatmega328 | ||
| 12 | |||
| 13 | [env:miniatmega328] | ||
| 14 | platform=atmelavr | ||
| 15 | board=miniatmega328 | ||
| 16 | framework=arduino | ||
| 17 | |||
| 18 | [env:pro8MHzatmega328] | ||
| 19 | platform=atmelavr | ||
| 20 | board=pro8MHzatmega328 | ||
| 21 | framework=arduino | ||
| 22 | ; minicore/optirun uses 38400 for 8MHz | ||
| 23 | upload_speed=38400 | ||
| 24 | |||
| 25 | [platformio] | ||
| 26 | lib_dir=/home/manuel/coding/Arduino/libraries | ||
diff --git a/rgbtv_light/rgbtv_light.ino b/rgbtv_light/src/rgbtv_light.cpp index 98120a6..98120a6 100644 --- a/rgbtv_light/rgbtv_light.ino +++ b/rgbtv_light/src/rgbtv_light.cpp | |||
diff --git a/testnode/.gitignore b/testnode/.gitignore new file mode 100644 index 0000000..89cc49c --- /dev/null +++ b/testnode/.gitignore | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | .pio | ||
| 2 | .vscode/.browse.c_cpp.db* | ||
| 3 | .vscode/c_cpp_properties.json | ||
| 4 | .vscode/launch.json | ||
| 5 | .vscode/ipch | ||
diff --git a/testnode/lib/readme.txt b/testnode/lib/readme.txt new file mode 100644 index 0000000..3f9e008 --- /dev/null +++ b/testnode/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/en/stable/librarymanager/ldf.html | ||
diff --git a/testnode/platformio.ini b/testnode/platformio.ini new file mode 100644 index 0000000..6e0f132 --- /dev/null +++ b/testnode/platformio.ini | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | ; PlatformIO Project Configuration File | ||
| 2 | ; | ||
| 3 | ; Build options: build flags, source filter, extra scripting | ||
| 4 | ; Upload options: custom port, speed and extra flags | ||
| 5 | ; Library options: dependencies, extra library storages | ||
| 6 | ; | ||
| 7 | ; Please visit documentation for the other options and examples | ||
| 8 | ; http://docs.platformio.org/en/stable/projectconf.html | ||
| 9 | |||
| 10 | [platformio] | ||
| 11 | env_default = pro8MHzatmega328 | ||
| 12 | |||
| 13 | [env:miniatmega328] | ||
| 14 | platform=atmelavr | ||
| 15 | board=miniatmega328 | ||
| 16 | framework=arduino | ||
| 17 | |||
| 18 | [env:pro8MHzatmega328] | ||
| 19 | platform=atmelavr | ||
| 20 | board=pro8MHzatmega328 | ||
| 21 | framework=arduino | ||
| 22 | ; minicore/optirun uses 38400 for 8MHz | ||
| 23 | upload_speed=38400 | ||
| 24 | |||
| 25 | [platformio] | ||
| 26 | lib_dir=/home/manuel/coding/Arduino/libraries | ||
diff --git a/testnode/testnode.ino b/testnode/src/testnode.cpp index 999c32a..999c32a 100644 --- a/testnode/testnode.ino +++ b/testnode/src/testnode.cpp | |||
diff --git a/tv_light/.gitignore b/tv_light/.gitignore index e05273b..89cc49c 100644 --- a/tv_light/.gitignore +++ b/tv_light/.gitignore | |||
| @@ -1,4 +1,5 @@ | |||
| 1 | .pioenvs | 1 | .pio |
| 2 | .clang_complete | 2 | .vscode/.browse.c_cpp.db* |
| 3 | .gcc-flags.json | 3 | .vscode/c_cpp_properties.json |
| 4 | .piolibdeps \ No newline at end of file | 4 | .vscode/launch.json |
| 5 | .vscode/ipch | ||
diff --git a/tv_light/src/tv_light.ino b/tv_light/src/tv_light.cpp index caf3a6e..caf3a6e 100644 --- a/tv_light/src/tv_light.ino +++ b/tv_light/src/tv_light.cpp | |||
