From 7ab5be7997a83e088d7507cf944763799e71cd42 Mon Sep 17 00:00:00 2001 From: Andreas Wilms Date: Sat, 15 Feb 2020 22:27:15 +0100 Subject: [PATCH] Disabled WiFI --- platformio.ini | 5 +++-- src/main.cpp | 8 +++++++- 2 files changed, 10 insertions(+), 3 deletions(-) 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);