Hi,
Is there a way to reverse the effect of FastLED.addLeds? something like removeLeds?
Thanks
Hi,
Is there a way to reverse the effect of FastLED.addLeds? something like removeLeds?
Thanks
No, there isn’t.
What would you be trying to achieve with a ‘removeLeds’ statement, David?
I found your question was a bit woolly… .
‘reverse the effects’ doesn’t seem to be the inverse of adding an array. If you gave more of an indication of just what you wanted to do, then what you wanted to ‘undo’, that might help.
You’re right, my question wasn’t very clear.
The reason I want to do “removeLeds” is in case I want to stop updating a certain led strip, i.e stop writing data to that digital pin.
I want to stop updating mainly in order to reduce the time it takes to update it in order to gain higher frame rate on other digital pins.
There’s no way to do something like that, but addLeds returns references to the created CLEDController objects that you could keep and call show on individually.