OTA lock fully working

pull/46/head
cschwinne 2016-11-27 21:37:00 +01:00
rodzic 123ab66b31
commit c88b9d6143
4 zmienionych plików z 3 dodań i 2 usunięć

Wyświetl plik

@ -9,7 +9,6 @@ implement discrete range color setter
implement discrete single color setter implement discrete single color setter
svg icons in html svg icons in html
notifier function -> send get request notifier function -> send get request
nightlight function -> turns off after set time (+implement fading)
add preferred colors to settings -> quickly t. UI, button select, add preferred colors to settings -> quickly t. UI, button select,
use iframe for settings, seperate tabs for wifi and application confg use iframe for settings, seperate tabs for wifi and application confg
use iframe for all adv. features? use iframe for all adv. features?

Wyświetl plik

@ -143,6 +143,7 @@ void loadSettingsFromEEPROM()
transitionDelay = ((EEPROM.read(253) << 0) & 0xFF) + ((EEPROM.read(254) << 8) & 0xFF00); transitionDelay = ((EEPROM.read(253) << 0) & 0xFF) + ((EEPROM.read(254) << 8) & 0xFF00);
transitionDelay_old = transitionDelay; transitionDelay_old = transitionDelay;
bri_n = EEPROM.read(255); bri_n = EEPROM.read(255);
otapass = "";
for (int i = 256; i < 288; ++i) for (int i = 256; i < 288; ++i)
{ {
if (EEPROM.read(i) == 0) break; if (EEPROM.read(i) == 0) break;

Wyświetl plik

@ -130,6 +130,8 @@ void wledInit()
strip.Begin(); strip.Begin();
colorUpdated(0); colorUpdated(0);
pinMode(buttonPin, INPUT_PULLUP); pinMode(buttonPin, INPUT_PULLUP);
Serial.println(otapass);
} }
void initAP(){ void initAP(){

Wyświetl plik

@ -119,7 +119,6 @@ void handleNightlight()
} }
} }
float nper = (millis() - nightlightStartTime)/((float)nightlightDelayMs); float nper = (millis() - nightlightStartTime)/((float)nightlightDelayMs);
Serial.println(nper);
if (nper >= 1) if (nper >= 1)
{ {
nightlightActive = false; nightlightActive = false;