Skip to content

Commit 49976ae

Browse files
authored
Merge pull request #4078 from apanteleev/fire-blur-control
Add a parameter for blur amount in the Fire 2012 effect
2 parents 21afb05 + 0af1ec3 commit 49976ae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

wled00/FX.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2106,14 +2106,17 @@ uint16_t mode_fire_2012() {
21062106
for (unsigned stripNr=0; stripNr<strips; stripNr++)
21072107
virtualStrip::runStrip(stripNr, &heat[stripNr * SEGLEN], it);
21082108

2109-
if (SEGMENT.is2D()) SEGMENT.blur(32);
2109+
if (SEGMENT.is2D()) {
2110+
uint8_t blurAmount = SEGMENT.custom2 >> 2;
2111+
SEGMENT.blur(blurAmount);
2112+
}
21102113

21112114
if (it != SEGENV.step)
21122115
SEGENV.step = it;
21132116

21142117
return FRAMETIME;
21152118
}
2116-
static const char _data_FX_MODE_FIRE_2012[] PROGMEM = "Fire 2012@Cooling,Spark rate,,,Boost;;!;1;sx=64,ix=160,m12=1"; // bars
2119+
static const char _data_FX_MODE_FIRE_2012[] PROGMEM = "Fire 2012@Cooling,Spark rate,,2D Blur,Boost;;!;1;sx=64,ix=160,m12=1,c2=128"; // bars
21172120

21182121

21192122
// ColorWavesWithPalettes by Mark Kriegsman: https://gist.github.com/kriegsman/8281905786e8b2632aeb

0 commit comments

Comments
 (0)