mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-16 15:33:05 +01:00
add example config for led
This commit is contained in:
@@ -43,7 +43,7 @@ void handleLeds(GwApi *api){
|
|||||||
leds[0]=colorFromMode(currentMode);
|
leds[0]=colorFromMode(currentMode);
|
||||||
FastLED.setBrightness(brightness);
|
FastLED.setBrightness(brightness);
|
||||||
FastLED.show();
|
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;
|
int apiResult=0;
|
||||||
while (true)
|
while (true)
|
||||||
{
|
{
|
||||||
|
|||||||
15
lib/ledtask/platformio.ini
Normal file
15
lib/ledtask/platformio.ini
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user