Disabled WiFI

This commit is contained in:
Andreas Wilms 2020-02-15 22:27:15 +01:00
parent 1b07c426d1
commit 7ab5be7997
2 changed files with 10 additions and 3 deletions

View File

@ -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

View File

@ -1,4 +1,5 @@
#include <WS2812FX.h>
#include <ESP8266WiFi.h>
#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 LEDs overall brightness. 0=strip off, 255=strip at full intensity
ws2812fx.setBrightness(255);