Disabled WiFI
This commit is contained in:
parent
1b07c426d1
commit
7ab5be7997
@ -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
|
||||
|
@ -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 LED’s overall brightness. 0=strip off, 255=strip at full intensity
|
||||
ws2812fx.setBrightness(255);
|
||||
|
Loading…
Reference in New Issue
Block a user