diff --git a/lib/ledtask/GwLedTask.cpp b/lib/ledtask/GwLedTask.cpp index 5df1e9d..bda304e 100644 --- a/lib/ledtask/GwLedTask.cpp +++ b/lib/ledtask/GwLedTask.cpp @@ -43,7 +43,7 @@ void handleLeds(GwApi *api){ leds[0]=colorFromMode(currentMode); FastLED.setBrightness(brightness); FastLED.show(); - LOG_DEBUG(GwLog::LOG,"led task started with mode %d",(int)currentMode); + LOG_DEBUG(GwLog::LOG,"led task started with mode %d, brightness=%d",(int)currentMode,(int)brightness); int apiResult=0; while (true) { diff --git a/lib/ledtask/platformio.ini b/lib/ledtask/platformio.ini new file mode 100644 index 0000000..c883d3b --- /dev/null +++ b/lib/ledtask/platformio.ini @@ -0,0 +1,15 @@ +[platformio] +#if you want a pio run to only build +#your special environments you can set this here +#by uncommenting the next line +#default_envs = testboard +[env:nodemculed] +board = nodemcu-32s +lib_deps = ${env.lib_deps} +build_flags = + -D BOARD_HOMBERGER + -D GWLED_CODE=1 + -D GWLED_PIN=33 + ${env.build_flags} +upload_port = /dev/esp32 +upload_protocol = esptool