Updated readme, link to wiki

Fixed unlock parameter
This commit is contained in:
cschwinne 2017-12-12 15:54:23 +01:00
parent 973b8f62c8
commit fa517d5d22
2 changed files with 3 additions and 18 deletions

View File

@ -50,22 +50,7 @@ You will need to install the NeoPixelBus library by Makuna. All other dependenci
### Advanced module control via HTTP requests API: ### Advanced module control via HTTP requests API:
Base URL scheme: "<moduleip>/win". This will return a XML file with some current values. See the [wiki](https://github.com/Aircoookie/WLED/wiki/HTTP-request-API)!
Add one or multiple of the following parameters after the base url to change values:
- "&A=<0-255>" set LED brightness (yellow slider)
- "&R=<0-255>" set LED red value (red slider)
- "&G=<0-255>" set LED green value (green slider)
- "&B=<0-255>" set LED blue value (blue slider)
- "&W=<0-255>" set LED white value (white slider) (only when RGBW enabled)
- "&T=<0 or 1 or 2-255>" 0: switch off, on, toggle
- "&FX=<0-47>" set LED effect (refer to WS2812FX library)
- "&SX=<0-255>" set LED effect speed (refer to WS2812FX library)
- "&RN=<0 or 1>" receive notifications on or off
- "&SN=<0 or 1>" send (direct) notifications on or off
- "&NL=<0 or 1>" turns nightlight function on or off
- "&MD=<0 or 1>" sets client color picker mode (RGB/HSB)
(this list is incomplete, will be available in wiki)
### Other ### Other

View File

@ -412,7 +412,7 @@ boolean handleSet(String req)
pos = req.indexOf("L2="); pos = req.indexOf("L2=");
if (pos > 0){ if (pos > 0){
int index2 = req.substring(pos + 3).toInt(); int index2 = req.substring(pos + 3).toInt();
if (req.indexOf("UL=") > 0) if (req.indexOf("UL") > 0)
{ {
strip.unlockRange(index, index2); strip.unlockRange(index, index2);
} else } else
@ -421,7 +421,7 @@ boolean handleSet(String req)
} }
} else } else
{ {
if (req.indexOf("UL=") > 0) if (req.indexOf("UL") > 0)
{ {
strip.unlock(index); strip.unlock(index);
} else } else