WLED/usermods/stairway_wipe_basic
toto79 6cb6a8ee98
create stairway-wipe-for-usermod-v2 (#1359)
* create stairway-wipe-for-usermod-v2

* Update and rename stairway-wipe-usermod.h to stairway-wipe-usermod-v2.h
2020-11-23 01:00:02 +01:00
..
readme.md Add staircase wipe usermod 2020-01-11 00:26:43 +01:00
stairway-wipe-usermod-v2.h create stairway-wipe-for-usermod-v2 (#1359) 2020-11-23 01:00:02 +01:00
wled06_usermod.ino Avoid name collision. Fix wled instance access in ino. 2020-03-28 08:45:20 -04:00

readme.md

Stairway lighting

Quick usermod to accomplish something similar to this video.

This usermod allows you to add a lightstrip alongside or on the steps of a staircase. When the userVar0 variable is set, the LEDs will gradually turn on in a Wipe effect. Both directions are supported by setting userVar0 to 1 and 2, respectively (HTTP API commands U0=1 and U0=2).

After the Wipe is complete, the light will either stay on (Solid effect) indefinitely or after userVar1 seconds have elapsed. If userVar0 is updated (e.g. by triggering a second sensor) the light will slowly fade off. This could be extended to also run a Wipe effect in reverse order to turn the LEDs back off.

This is just a basic version to accomplish this using HTTP API calls U0 and U1 and/or macros. It should be easy to adapt this code however to interface with motion sensors or other input devices.