mirror of
https://github.com/wled/WLED.git
synced 2025-04-25 07:17:18 +00:00
Usermod transition change
This commit is contained in:
parent
b88344a6c0
commit
8de2301c6b
@ -298,7 +298,7 @@ class Animated_Staircase : public Usermod {
|
|||||||
|
|
||||||
// shorten the strip transition time to be equal or shorter than segment delay
|
// shorten the strip transition time to be equal or shorter than segment delay
|
||||||
transitionDelay = segment_delay_ms;
|
transitionDelay = segment_delay_ms;
|
||||||
strip.setTransition(segment_delay_ms/100);
|
strip.setTransition(segment_delay_ms);
|
||||||
strip.trigger();
|
strip.trigger();
|
||||||
} else {
|
} else {
|
||||||
if (togglePower && !on && offMode) toggleOnOff(); // toggle power on if off
|
if (togglePower && !on && offMode) toggleOnOff(); // toggle power on if off
|
||||||
|
@ -91,6 +91,7 @@ class StairwayWipeUsermod : public Usermod {
|
|||||||
void startWipe()
|
void startWipe()
|
||||||
{
|
{
|
||||||
bri = briLast; //turn on
|
bri = briLast; //turn on
|
||||||
|
jsonTransitionOnce = true;
|
||||||
strip.setTransition(0); //no transition
|
strip.setTransition(0); //no transition
|
||||||
effectCurrent = FX_MODE_COLOR_WIPE;
|
effectCurrent = FX_MODE_COLOR_WIPE;
|
||||||
resetTimebase(); //make sure wipe starts from beginning
|
resetTimebase(); //make sure wipe starts from beginning
|
||||||
@ -105,6 +106,7 @@ class StairwayWipeUsermod : public Usermod {
|
|||||||
|
|
||||||
void turnOff()
|
void turnOff()
|
||||||
{
|
{
|
||||||
|
jsonTransitionOnce = true;
|
||||||
#ifdef STAIRCASE_WIPE_OFF
|
#ifdef STAIRCASE_WIPE_OFF
|
||||||
strip.setTransition(0); //turn off immediately after wipe completed
|
strip.setTransition(0); //turn off immediately after wipe completed
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user