Fixed colorwheel
This commit is contained in:
parent
7274541722
commit
0166dfe16e
@ -18,7 +18,7 @@
|
|||||||
#elif LEDPIN == 3
|
#elif LEDPIN == 3
|
||||||
#define PIXELMETHOD NeoEsp8266Dma800KbpsMethod
|
#define PIXELMETHOD NeoEsp8266Dma800KbpsMethod
|
||||||
#else
|
#else
|
||||||
#define PIXELMETHOD NeoEsp8266BitBangWs2813Method
|
#define PIXELMETHOD NeoEsp8266BitBang800KbpsMethod
|
||||||
#pragma message "Software BitBang will be used because of your selected LED pin. This may cause flicker. Use GPIO 2 or 3 for best results."
|
#pragma message "Software BitBang will be used because of your selected LED pin. This may cause flicker. Use GPIO 2 or 3 for best results."
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
@ -540,13 +540,12 @@ function GIO()
|
|||||||
}
|
}
|
||||||
d.getElementById('sxs').value = i.sx;
|
d.getElementById('sxs').value = i.sx;
|
||||||
d.getElementById('ixs').value = i.ix;
|
d.getElementById('ixs').value = i.ix;
|
||||||
|
recv =1;
|
||||||
|
uB();
|
||||||
})
|
})
|
||||||
.catch(function () {
|
.catch(function () {
|
||||||
e3.innerHTML=e;
|
e3.innerHTML=e;
|
||||||
})
|
})
|
||||||
recv =1;
|
|
||||||
uB();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function EC(eurl){
|
function EC(eurl){
|
||||||
|
2394
wled00/html_mobile.h
2394
wled00/html_mobile.h
File diff suppressed because it is too large
Load Diff
@ -89,7 +89,7 @@
|
|||||||
|
|
||||||
|
|
||||||
//version code in format yymmddb (b = daily build)
|
//version code in format yymmddb (b = daily build)
|
||||||
#define VERSION 1903071
|
#define VERSION 1903072
|
||||||
char versionString[] = "0.8.4-dev";
|
char versionString[] = "0.8.4-dev";
|
||||||
|
|
||||||
|
|
||||||
@ -471,7 +471,11 @@ void serveMessage(AsyncWebServerRequest*,uint16_t,String,String,byte);
|
|||||||
void reset()
|
void reset()
|
||||||
{
|
{
|
||||||
briT = 0;
|
briT = 0;
|
||||||
delay(250); //enough time to send response to client
|
long dly = millis();
|
||||||
|
while(millis() - dly < 250)
|
||||||
|
{
|
||||||
|
yield(); //enough time to send response to client
|
||||||
|
}
|
||||||
setAllLeds();
|
setAllLeds();
|
||||||
DEBUG_PRINTLN("MODULE RESET");
|
DEBUG_PRINTLN("MODULE RESET");
|
||||||
ESP.restart();
|
ESP.restart();
|
||||||
|
@ -301,7 +301,7 @@ void handleSettingsSet(AsyncWebServerRequest *request, byte subPage)
|
|||||||
aOtaEnabled = request->hasArg("AO");
|
aOtaEnabled = request->hasArg("AO");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
saveSettingsToEEPROM();
|
if (subPage != 6 || !doReboot) saveSettingsToEEPROM(); //do not save if factory reset
|
||||||
if (subPage == 2) strip.init(useRGBW,ledCount,skipFirstLed);
|
if (subPage == 2) strip.init(useRGBW,ledCount,skipFirstLed);
|
||||||
if (subPage == 4) alexaInit();
|
if (subPage == 4) alexaInit();
|
||||||
}
|
}
|
||||||
@ -465,6 +465,7 @@ bool handleSet(AsyncWebServerRequest *request, String req)
|
|||||||
updateVal(&req, "FP=", &effectPalette, 0, strip.getPaletteCount()-1);
|
updateVal(&req, "FP=", &effectPalette, 0, strip.getPaletteCount()-1);
|
||||||
|
|
||||||
//set hue polling light: 0 -off
|
//set hue polling light: 0 -off
|
||||||
|
#ifndef WLED_DISABLE_HUESYNC
|
||||||
pos = req.indexOf("HP=");
|
pos = req.indexOf("HP=");
|
||||||
if (pos > 0) {
|
if (pos > 0) {
|
||||||
int id = getNumVal(&req, pos);
|
int id = getNumVal(&req, pos);
|
||||||
@ -476,6 +477,7 @@ bool handleSet(AsyncWebServerRequest *request, String req)
|
|||||||
huePollingEnabled = false;
|
huePollingEnabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
//set default control mode (0 - RGB, 1 - HSB)
|
//set default control mode (0 - RGB, 1 - HSB)
|
||||||
pos = req.indexOf("MD=");
|
pos = req.indexOf("MD=");
|
||||||
|
@ -10,7 +10,7 @@ void handleSerial()
|
|||||||
if (!realtimeActive && bri == 0) strip.setBrightness(briLast);
|
if (!realtimeActive && bri == 0) strip.setBrightness(briLast);
|
||||||
arlsLock(realtimeTimeoutMs);
|
arlsLock(realtimeTimeoutMs);
|
||||||
|
|
||||||
delay(1);
|
yield();
|
||||||
byte hi = Serial.read();
|
byte hi = Serial.read();
|
||||||
byte ledc = Serial.read();
|
byte ledc = Serial.read();
|
||||||
byte chk = Serial.read();
|
byte chk = Serial.read();
|
||||||
@ -24,9 +24,9 @@ void handleSerial()
|
|||||||
{
|
{
|
||||||
while (Serial.peek()<0) //no data yet available
|
while (Serial.peek()<0) //no data yet available
|
||||||
{
|
{
|
||||||
delay(1);
|
yield();
|
||||||
to++;
|
to++;
|
||||||
if (to>5) {strip.show(); return;} //unexpected end of transmission
|
if (to>15) {strip.show(); return;} //unexpected end of transmission
|
||||||
}
|
}
|
||||||
to = 0;
|
to = 0;
|
||||||
sc[j] = Serial.read();
|
sc[j] = Serial.read();
|
||||||
|
@ -62,7 +62,7 @@ void initServer()
|
|||||||
|
|
||||||
server.on("/settings/sec", HTTP_POST, [](AsyncWebServerRequest *request){
|
server.on("/settings/sec", HTTP_POST, [](AsyncWebServerRequest *request){
|
||||||
handleSettingsSet(request, 6);
|
handleSettingsSet(request, 6);
|
||||||
serveMessage(request, 200,"Security settings saved.","Rebooting now, please wait ~10 seconds...",129);
|
if (!doReboot) serveMessage(request, 200,"Security settings saved.","Rebooting now, please wait ~10 seconds...",129);
|
||||||
doReboot = true;
|
doReboot = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user