From ad4acca17a500e23dad6811af82b8bc7fd508c7b Mon Sep 17 00:00:00 2001 From: cschwinne Date: Sun, 9 Feb 2020 10:35:32 +0100 Subject: [PATCH] Minor adjustments --- wled00/data/settings_sync.htm | 16 ++++++++-------- wled00/html_other.h | 2 +- wled00/html_settings.h | 4 ++-- wled00/wled00.ino | 8 +++----- wled00/wled05_init.ino | 1 + wled00/wled08_led.ino | 10 ++++++++-- 6 files changed, 23 insertions(+), 18 deletions(-) diff --git a/wled00/data/settings_sync.htm b/wled00/data/settings_sync.htm index 362bb214..af7f757a 100644 --- a/wled00/data/settings_sync.htm +++ b/wled00/data/settings_sync.htm @@ -105,6 +105,9 @@

MQTT

Enable MQTT:
Broker:
+ Port:
+ The MQTT credentials are sent over an unsecured connection.
+ Never use the MQTT password for another service!

Username:
Password:
Client ID:
@@ -113,18 +116,15 @@ MQTT info

Philips Hue

You can find the bridge IP and the light number in the 'About' section of the hue app.
- Poll Hue light every ms:
+ Poll Hue light every ms:
Then, receive On/Off, Brightness, and Color
Hue Bridge IP:
- . - . - . -
+ . + . + . +
Press the pushlink button on the bridge, after that save this page!
(when first connecting)
- - Hue status: Internal ESP Error!
diff --git a/wled00/html_other.h b/wled00/html_other.h index 4111bc6e..c7d3e855 100644 --- a/wled00/html_other.h +++ b/wled00/html_other.h @@ -20,7 +20,7 @@ const char PAGE_msg[] PROGMEM = R"=====( const char PAGE_update[] PROGMEM = R"=====( WLED Update -

WLED Software Update

Installed version: 0.9.0-b1
Download the latest binary:

)====="; +

WLED Software Update

Installed version: 0.9.1
Download the latest binary:

)====="; //new user welcome page diff --git a/wled00/html_settings.h b/wled00/html_settings.h index c54bf5ff..ae08802b 100644 --- a/wled00/html_settings.h +++ b/wled00/html_settings.h @@ -223,7 +223,7 @@ Device Auth token:

MQTT

Enable MQTT:
Broker: -Port:
+Port:
The MQTT credentials are sent over an unsecured connection.
Never use the MQTT password for another service!

Username:
@@ -370,7 +370,7 @@ HTTP traffic is unencrypted. An attacker in the same network can intercept form
Enable ArduinoOTA:

About

-WLED version 0.9.0-b2

+WLED version 0.9.1

Contributors, dependencies and special thanks
A huge thank you to everyone who helped me create WLED!

(c) 2016-2020 Christian Schwinne
diff --git a/wled00/wled00.ino b/wled00/wled00.ino index f2f94145..5b17a6dc 100644 --- a/wled00/wled00.ino +++ b/wled00/wled00.ino @@ -3,7 +3,7 @@ */ /* * @title WLED project sketch - * @version 0.9.0-b2 + * @version 0.9.1 * @author Christian Schwinne */ @@ -90,9 +90,9 @@ #endif //version code in format yymmddb (b = daily build) -#define VERSION 2001281 +#define VERSION 2002021 -char versionString[] = "0.9.0-b2"; +char versionString[] = "0.9.1"; //AP and OTA default passwords (for maximum change them!) @@ -115,9 +115,7 @@ char cmDNS[33] = "x"; //mDNS address (placeholder, will char apSSID[33] = ""; //AP off by default (unless setup) byte apChannel = 1; //2.4GHz WiFi AP channel (1-13) byte apHide = 0; //hidden AP SSID -//byte apWaitTimeSecs = 32; //time to wait for connection before opening AP byte apBehavior = 0; //0: Open AP when no connection after boot 1: Open when no connection 2: Always open 3: Only when button pressed for 6 sec -//bool recoveryAPDisabled = false; //never open AP (not recommended) IPAddress staticIP(0, 0, 0, 0); //static IP of ESP IPAddress staticGateway(0, 0, 0, 0); //gateway (router) IP IPAddress staticSubnet(255, 255, 255, 0); //most common subnet in home networks diff --git a/wled00/wled05_init.ino b/wled00/wled05_init.ino index 0d113b46..b6027303 100644 --- a/wled00/wled05_init.ino +++ b/wled00/wled05_init.ino @@ -152,6 +152,7 @@ void initAP(bool resetAP=false){ void initConnection() { WiFi.disconnect(); //close old connections + WiFi.setPhyMode(WIFI_PHY_MODE_11N); if (staticIP[0] != 0 && staticGateway[0] != 0) { diff --git a/wled00/wled08_led.ino b/wled00/wled08_led.ino index 786049a0..480b9741 100644 --- a/wled00/wled08_led.ino +++ b/wled00/wled08_led.ino @@ -57,7 +57,7 @@ void setAllLeds() { } -void setLedsStandard() +void setLedsStandard(bool justColors = false) { for (byte i=0; i<4; i++) { @@ -66,6 +66,7 @@ void setLedsStandard() colSecOld[i] = colSec[i]; colSecT[i] = colSec[i]; } + if (justColors) return; briOld = bri; briT = bri; setAllLeds(); @@ -120,7 +121,12 @@ void colorUpdated(int callMode) colIT[i] = col[i]; colSecIT[i] = colSec[i]; } - if (briT == 0 && callMode != 3) resetTimebase(); + if (briT == 0) + { + setLedsStandard(true); //do not color transition if starting from off + if (callMode != 3) resetTimebase(); //effect start from beginning + } + briIT = bri; if (bri > 0) briLast = bri;