kopia lustrzana https://github.com/Aircoookie/WLED
rodzic
e97a739f03
commit
bf2fe43c0e
Plik binarny nie jest wyświetlany.
Plik binarny nie jest wyświetlany.
Plik binarny nie jest wyświetlany.
Plik binarny nie jest wyświetlany.
Plik binarny nie jest wyświetlany.
Plik binarny nie jest wyświetlany.
|
@ -38,6 +38,7 @@
|
|||
#define CALL_MODE(n) (this->*_mode[n])();
|
||||
|
||||
void WS2812FX::init() {
|
||||
for (int i=0; i < _led_count; i++) _locked[i] = false;
|
||||
begin();
|
||||
WS2812FX::setBrightness(_brightness);
|
||||
show();
|
||||
|
@ -2034,6 +2035,7 @@ void WS2812FX::show()
|
|||
portDISABLE_INTERRUPTS();
|
||||
delay(1);
|
||||
NeoPixelBrightnessBus::Show();
|
||||
delay(1);
|
||||
portENABLE_INTERRUPTS();
|
||||
#else
|
||||
NeoPixelBrightnessBus::Show();
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
//automatically uses the right driver method for each platform
|
||||
#ifdef ARDUINO_ARCH_ESP32
|
||||
#define PIXELMETHOD NeoWs2813Method
|
||||
#define PIXELMETHOD NeoEsp32BitBangWs2813Method
|
||||
#else
|
||||
#define PIXELMETHOD NeoEsp8266Uart800KbpsMethod
|
||||
#endif
|
||||
|
|
|
@ -29,14 +29,15 @@
|
|||
#include "WS2812FX.h"
|
||||
|
||||
//version in format yymmddb (b = daily build)
|
||||
#define VERSION 1801150
|
||||
#define VERSION 1801162
|
||||
const String versionName = "WLED 0.5dev";
|
||||
|
||||
//AP and OTA default passwords (change them!)
|
||||
String appass = "wled1234";
|
||||
String otapass = "wledota";
|
||||
|
||||
//If you have an RGBW strip, uncomment first line in WS2812FX.h!
|
||||
//If you have an RGBW strip, also uncomment first line in WS2812FX.h!
|
||||
boolean useRGBW = false;
|
||||
|
||||
//overlays, needed for clocks etc.
|
||||
#define USEOVERLAYS
|
||||
|
@ -105,7 +106,6 @@ boolean turnOnAtBoot = true;
|
|||
uint8_t bootPreset = 0;
|
||||
byte col_s[]{255, 159, 0};
|
||||
byte col_sec_s[]{0, 0, 0};
|
||||
boolean useRGBW = false;
|
||||
byte white_s = 0;
|
||||
byte white_sec_s = 0;
|
||||
byte bri_s = 127;
|
||||
|
|
|
@ -183,7 +183,7 @@ void wledInit()
|
|||
server.on("/down", HTTP_GET, down);
|
||||
server.on("/cleareeprom", HTTP_GET, clearEEPROM);
|
||||
//init ota page
|
||||
httpUpdater.setup(&server); //only for ESP8266
|
||||
httpUpdater.setup(&server);
|
||||
//init ArduinoOTA
|
||||
ArduinoOTA.onStart([]() {
|
||||
#ifndef ARDUINO_ARCH_ESP32
|
||||
|
|
Ładowanie…
Reference in New Issue