diff --git a/platformio.ini b/platformio.ini index 47b5a8a..decf26d 100644 --- a/platformio.ini +++ b/platformio.ini @@ -17,5 +17,6 @@ board_build.mcu = esp8266 ; change MCU frequency board_build.f_cpu = 80000000L upload_protocol = esptool -lib_deps = WS2812FX - +lib_deps = + WS2812FX + JustWifi diff --git a/src/main.cpp b/src/main.cpp index 7061431..0d47c98 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,4 +1,5 @@ #include +#include #define LED_COUNT 60 #define LED_PIN 12 @@ -19,7 +20,12 @@ unsigned long last_change = 0; unsigned long now = 0; void setup() { - ws2812fx.init(); + + WiFi.mode(WIFI_OFF); + WiFi.forceSleepBegin(); + delay(1); + + ws2812fx.init(); // Set the LED’s overall brightness. 0=strip off, 255=strip at full intensity ws2812fx.setBrightness(255);