Add CY=2 for cycle toggling (closes #1174)
This commit is contained in:
parent
a3e1af72ab
commit
35b54e2f88
@ -2,6 +2,12 @@
|
|||||||
|
|
||||||
### Development versions after the 0.10.2 release
|
### Development versions after the 0.10.2 release
|
||||||
|
|
||||||
|
#### Build 2009201
|
||||||
|
|
||||||
|
- Added support for preset cycle toggling using CY=2
|
||||||
|
- Added ESP32 touch pin support (#1190)
|
||||||
|
- Fixed modem sleep on ESP8266 (#1184)
|
||||||
|
|
||||||
#### Build 2009200
|
#### Build 2009200
|
||||||
|
|
||||||
- Increased available heap memory by 4kB
|
- Increased available heap memory by 4kB
|
||||||
|
@ -97,7 +97,7 @@ If WLED really brightens up your every day, you can [![](https://img.shields.io/
|
|||||||
|
|
||||||
|
|
||||||
*Disclaimer:*
|
*Disclaimer:*
|
||||||
If you are sensitive to photoeleptic seizures it is not recommended that you use this software.
|
If you are sensitive to photosensitive epilepsy it is not recommended that you use this software.
|
||||||
In case you still want to try, don't use strobe, lighting or noise modes or high effect speed settings.
|
In case you still want to try, don't use strobe, lighting or noise modes or high effect speed settings.
|
||||||
As per the MIT license, i assume no liability for any damage to you or any other person or equipment.
|
As per the MIT license, I assume no liability for any damage to you or any other person or equipment.
|
||||||
|
|
||||||
|
@ -21,6 +21,10 @@
|
|||||||
#define BTNPIN 0 //button pin. Needs to have pullup (gpio0 recommended)
|
#define BTNPIN 0 //button pin. Needs to have pullup (gpio0 recommended)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef TOUCHPIN
|
||||||
|
//#define TOUCHPIN T0 //touch pin. Behaves the same as button. ESP32 only.
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef IR_PIN
|
#ifndef IR_PIN
|
||||||
#define IR_PIN 4 //infrared pin (-1 to disable) MagicHome: 4, H801 Wifi: 0
|
#define IR_PIN 4 //infrared pin (-1 to disable) MagicHome: 4, H801 Wifi: 0
|
||||||
#endif
|
#endif
|
||||||
|
@ -471,7 +471,9 @@ bool handleSet(AsyncWebServerRequest *request, const String& req)
|
|||||||
pos = req.indexOf(F("CY="));
|
pos = req.indexOf(F("CY="));
|
||||||
if (pos > 0)
|
if (pos > 0)
|
||||||
{
|
{
|
||||||
presetCyclingEnabled = (req.charAt(pos+3) != '0');
|
char cmd = req.charAt(pos+3);
|
||||||
|
if (cmd == '2') presetCyclingEnabled = !presetCyclingEnabled;
|
||||||
|
else presetCyclingEnabled = (cmd != '0');
|
||||||
presetCycCurr = presetCycleMin;
|
presetCycCurr = presetCycleMin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// version code in format yymmddb (b = daily build)
|
// version code in format yymmddb (b = daily build)
|
||||||
#define VERSION 2009200
|
#define VERSION 2009201
|
||||||
|
|
||||||
// ESP8266-01 (blue) got too little storage space to work with all features of WLED. To use it, you must use ESP8266 Arduino Core v2.4.2 and the setting 512K(No SPIFFS).
|
// ESP8266-01 (blue) got too little storage space to work with all features of WLED. To use it, you must use ESP8266 Arduino Core v2.4.2 and the setting 512K(No SPIFFS).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user