You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
boolallocateData(size_t len);// allocates effect data buffer in heap and clears it
551
+
voiddeallocateData(void);// deallocates (frees) effect data buffer from heap
552
+
voidresetIfRequired(void);// sets all SEGENV variables to 0 and clears data buffer
549
553
/**
550
554
* Flags that before the next effect is calculated,
551
555
* the internal segment state should be reset.
@@ -559,10 +563,10 @@ typedef struct Segment {
559
563
voidstopTransition(void);
560
564
voidhandleTransition(void);
561
565
#ifndef WLED_DISABLE_MODE_BLEND
562
-
voidswapSegenv(tmpsegd_t &tmpSegD);
563
-
voidrestoreSegenv(tmpsegd_t &tmpSegD);
566
+
voidswapSegenv(tmpsegd_t &tmpSegD);// copies segment data into specifed buffer, if buffer is not a transition buffer, segment data is overwritten from transition buffer
567
+
voidrestoreSegenv(tmpsegd_t &tmpSegD);// restores segment data from buffer, if buffer is not transition buffer, changed values are copied to transition buffer
564
568
#endif
565
-
uint16_tprogress(void); //transition progression between 0-65535
569
+
uint16_tprogress(void); //transition progression between 0-65535
566
570
uint8_tcurrentBri(bool useCct = false);
567
571
uint8_tcurrentMode(void);
568
572
uint32_tcurrentColor(uint8_t slot);
@@ -682,10 +686,7 @@ class WS2812FX { // 96 bytes
682
686
WS2812FX() :
683
687
paletteFade(0),
684
688
paletteBlend(0),
685
-
milliampsPerLed(55),
686
689
cctBlending(0),
687
-
ablMilliampsMax(ABL_MILLIAMPS_DEFAULT),
688
-
currentMilliamps(0),
689
690
now(millis()),
690
691
timebase(0),
691
692
isMatrix(false),
@@ -760,7 +761,7 @@ class WS2812FX { // 96 bytes
760
761
resetSegments(),
761
762
makeAutoSegments(bool forceReset = false),
762
763
fixInvalidSegments(),
763
-
setPixelColor(int n, uint32_t c),
764
+
setPixelColor(unsigned n, uint32_t c),
764
765
show(void),
765
766
setTargetFps(uint8_t fps),
766
767
addEffect(uint8_t id, mode_ptr mode_fn, constchar *mode_name), // add effect to the list; defined in FX.cpp
@@ -769,10 +770,10 @@ class WS2812FX { // 96 bytes
769
770
inlinevoidrestartRuntime() { for (Segment &seg : _segments) seg.markForReset(); }
0 commit comments