From e29e8eb5914c1ad1e4912cbf071b395c1814549a Mon Sep 17 00:00:00 2001 From: andreas Date: Sat, 7 Sep 2024 11:35:50 +0200 Subject: [PATCH] add example config for led --- lib/ledtask/GwLedTask.cpp | 2 +- lib/ledtask/platformio.ini | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 lib/ledtask/platformio.ini 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