What I do not understand is the button to increment/decrement the length of the strip... because the strip has at runtime obviously at all times the same length, does it?
Or do you you think with the button to move the then lit LEDs back and forth on the strip?
Try to understand the big pic here (I also noticed the related conversation titled [v issues],(WS2812B issues), where you do your first steps w/ WS2812B.
WS2812B strips have some timing sensitivity... therefore, you will always have to prep all values in an array and feed it to the write..., in other words - when I understand you correct - there will be, for example, 5 0-triplets which will go out first and keep in the end the last 5 LEDs dark, then 10 mixed triplets for the 10 lit LEDs in various colors, and then, finally another 3 0-triplets to keep the first 3 LEDs of a strip of total 18 LEDs in the dark. Does that sound about right?
Can you make a char-graphic of various sets of states the strip would show in? ...for example
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ic... almost...
What I do not understand is the button to increment/decrement the length of the strip... because the strip has at runtime obviously at all times the same length, does it?
Or do you you think with the button to move the then lit LEDs back and forth on the strip?
Try to understand the big pic here (I also noticed the related conversation titled [v issues],(WS2812B issues), where you do your first steps w/ WS2812B.
WS2812B strips have some timing sensitivity... therefore, you will always have to prep all values in an array and feed it to the write..., in other words - when I understand you correct - there will be, for example, 5 0-triplets which will go out first and keep in the end the last 5 LEDs dark, then 10 mixed triplets for the 10 lit LEDs in various colors, and then, finally another 3 0-triplets to keep the first 3 LEDs of a strip of total 18 LEDs in the dark. Does that sound about right?
Can you make a char-graphic of various sets of states the strip would show in? ...for example
Is that about what you have in mind?