Revert speed for Fire.
Segment brightnes +/- fix.
This commit is contained in:
parent
8b73a7375a
commit
d7e1dc1f95
@ -1966,7 +1966,7 @@ uint16_t WS2812FX::mode_fire_2012()
|
||||
const uint16_t rows = isMatrix && !isTransposed ? height : width;
|
||||
const uint16_t cols = isMatrix && !isTransposed ? width : height; // will be 1 for 1D
|
||||
|
||||
uint32_t it = now >> 6; //div 32
|
||||
uint32_t it = now >> 5; //div 32
|
||||
uint16_t q = cols>>2; // a quarter of flames
|
||||
|
||||
if (!SEGENV.allocateData(cols*rows)) return mode_static(); //allocation failed
|
||||
|
@ -84,7 +84,7 @@ void deserializeSegment(JsonObject elem, byte it, byte presetId)
|
||||
if (stop > start && of > len -1) of = len -1;
|
||||
strip.setSegment(id, start, stop, grp, spc, of, startY, stopY);
|
||||
|
||||
byte segbri = 0;
|
||||
byte segbri = seg.opacity;
|
||||
if (getVal(elem["bri"], &segbri)) {
|
||||
if (segbri > 0) seg.setOpacity(segbri, id);
|
||||
seg.setOption(SEG_OPTION_ON, segbri, id);
|
||||
|
Loading…
Reference in New Issue
Block a user