Skip to content

Commit d06cc27

Browse files
authored
Allow to define default led effect
1 parent ab5b6f9 commit d06cc27

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

wled00/wled.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,10 @@ WLED_GLOBAL bool notifyHue _INIT(true); // send notifi
739739
#endif
740740

741741
// effects
742-
WLED_GLOBAL byte effectCurrent _INIT(0);
742+
#ifndef DEFAULT_LED_EFFECT
743+
#define DEFAULT_LED_EFFECT 0
744+
#endif
745+
WLED_GLOBAL byte effectCurrent _INIT(DEFAULT_LED_EFFECT);
743746
WLED_GLOBAL byte effectSpeed _INIT(128);
744747
WLED_GLOBAL byte effectIntensity _INIT(128);
745748
WLED_GLOBAL byte effectPalette _INIT(0);

0 commit comments

Comments
 (0)