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
.clang_complete
.gcc-flags.json
.DS_Store

View File

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

View File

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