From c5d008e988a1550bb0a66a01a7f67368feed236f Mon Sep 17 00:00:00 2001 From: kou029w Date: Fri, 14 Apr 2017 21:57:19 +0900 Subject: [PATCH] First commit --- .gitignore | 2 ++ .travis.yml | 14 ++++++++++++++ lib/readme.txt | 36 ++++++++++++++++++++++++++++++++++++ platformio.ini | 15 +++++++++++++++ src/k2ping.ino | 22 ++++++++++++++++++++++ 5 files changed, 89 insertions(+) create mode 100644 .gitignore create mode 100644 .travis.yml create mode 100644 lib/readme.txt create mode 100644 platformio.ini create mode 100644 src/k2ping.ino diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ab09fd5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +.pioenvs +.piolibdeps diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..05a071e --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +language: python +python: + - "2.7" + +sudo: false +cache: + directories: + - "~/.platformio" + +install: + - pip install -U platformio + +script: + - platformio run diff --git a/lib/readme.txt b/lib/readme.txt new file mode 100644 index 0000000..9c196e2 --- /dev/null +++ b/lib/readme.txt @@ -0,0 +1,36 @@ + +This directory is intended for the project specific (private) libraries. +PlatformIO will compile them to static libraries and link to executable file. + +The source code of each library should be placed in separate directory, like +"lib/private_lib/[here are source files]". + +For example, see how can be organized `Foo` and `Bar` libraries: + +|--lib +| |--Bar +| | |--docs +| | |--examples +| | |--src +| | |- Bar.c +| | |- Bar.h +| |--Foo +| | |- Foo.c +| | |- Foo.h +| |- readme.txt --> THIS FILE +|- platformio.ini +|--src + |- main.c + +Then in `src/main.c` you should use: + +#include +#include + +// rest H/C/CPP code + +PlatformIO will find your libraries automatically, configure preprocessor's +include paths and build them. + +More information about PlatformIO Library Dependency Finder +- http://docs.platformio.org/page/librarymanager/ldf.html diff --git a/platformio.ini b/platformio.ini new file mode 100644 index 0000000..327d0dc --- /dev/null +++ b/platformio.ini @@ -0,0 +1,15 @@ +; PlatformIO Project Configuration File +; +; Build options: build flags, source filter +; Upload options: custom upload port, speed and extra flags +; Library options: dependencies, extra library storages +; Advanced options: extra scripting +; +; Please visit documentation for the other options and examples +; http://docs.platformio.org/page/projectconf.html + +[env:d1] +platform = espressif8266 +board = d1 +framework = arduino +upload_speed = 921600 diff --git a/src/k2ping.ino b/src/k2ping.ino new file mode 100644 index 0000000..4bebde3 --- /dev/null +++ b/src/k2ping.ino @@ -0,0 +1,22 @@ +#include + +// Model: WeMos D1 +#define D0 3 +#define D1 1 +#define D2 16 +#define D3 5 +#define D4 4 +#define D5 14 +#define D6 12 +#define D7 13 +#define D8 0 +#define D9 2 +#define D10 15 + +void setup() { + ; +} + +void loop() { + ; +}