add example config for led
This commit is contained in:
parent
bd793b8306
commit
e29e8eb591
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue