Compatible with Arduino and PlatformIO

This commit is contained in:
Juergen Jung 2017-01-29 14:41:26 +01:00
parent 6667365739
commit 9d01b42e32
5 changed files with 8 additions and 4 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
.piolibdeps .piolibdeps
.clang_complete .clang_complete
.gcc-flags.json .gcc-flags.json
.DS_Store

View File

@ -80,7 +80,7 @@ bool onSetLength(const HomieRange& range, const String& value){
pixels.show(); pixels.show();
int newLength = value.toInt(); int newLength = value.toInt();
if(newLength > 0){ if(newLength > 0){
pixels.updateLength(newLength); pixels.updateLength(newLength);
} }
stripNode.setProperty("length").send(value); stripNode.setProperty("length").send(value);
} }

View File

@ -9,9 +9,9 @@
; http://docs.platformio.org/page/projectconf.html ; http://docs.platformio.org/page/projectconf.html
[env:d1_mini] [env:d1_mini]
platform = espressif8266 platform=espressif8266
board = d1_mini board=d1_mini
framework = arduino framework=arduino
;upload_port = /dev/tty.wchusbserial410 ;upload_port = /dev/tty.wchusbserial410
;upload_speed = 921600 ;upload_speed = 921600
@ -26,3 +26,6 @@ lib_deps =
ESPAsyncTCP ESPAsyncTCP
AsyncMqttClient AsyncMqttClient
Adafruit NeoPixel Adafruit NeoPixel
[platformio]
src_dir=esp-wemos-schild