Skip to content

Commit 17b648f

Browse files
blazonceksofthack007
authored andcommitted
Merge pull request wled#4078 from apanteleev/fire-blur-control
Add a parameter for blur amount in the Fire 2012 effect
1 parent ca50bca commit 17b648f

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
@@ -2156,14 +2156,17 @@ uint16_t mode_fire_2012() {
21562156
for (int stripNr=0; stripNr<strips; stripNr++)
21572157
virtualStrip::runStrip(stripNr, &heat[stripNr * SEGLEN], it);
21582158

2159-
if (SEGMENT.is2D()) SEGMENT.blur(32);
2159+
if (SEGMENT.is2D()) {
2160+
uint8_t blurAmount = SEGMENT.custom2 >> 2;
2161+
SEGMENT.blur(blurAmount);
2162+
}
21602163

21612164
if (it != SEGENV.step)
21622165
SEGENV.step = it;
21632166

21642167
return FRAMETIME;
21652168
}
2166-
static const char _data_FX_MODE_FIRE_2012[] PROGMEM = "Fire 2012@Cooling,Spark rate,,,Boost;;!;1.5d;sx=64,ix=160,m12=1"; // bars WLEDMM 1.5d,
2169+
static const char _data_FX_MODE_FIRE_2012[] PROGMEM = "Fire 2012@Cooling,Spark rate,,2D Blur,Boost;;!;1.5d;sx=64,ix=160,m12=1,c2=128"; // bars WLEDMM 1.5d,
21672170

21682171

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

0 commit comments

Comments
 (0)