Answer the question
In order to leave comments, you need to log in
How to connect 4 separate snowflakes on ws2812 to esp8266?
You need to connect 4 snowflakes to one Wemos. One snowflake is 31 ws2812b leds.
As I understand it, it is better to connect snowflakes in series, one after another. Those. physically, this will be one tape, consisting of 31 * 4 = 124 LEDs.
But how to explain to Wemos that there are 4 separate snowflakes? I'm going to use the FastLED library.
Answer the question
In order to leave comments, you need to log in
So there are no more individual snowflakes. There is a strip of 124 LEDs. Now we need to fix the effects code.
The easiest thing to do is to make snowflakes behave the same way. Where the state of the next LED is set in the effect code, you need to repeat it for the other three.
If, for example, for one snowflake at the next step, the 1st LED lights up red, then now the 1st, 32nd, 63rd and 94th LEDs need to be lit red. Etc.
You have a certain offset for each snowflake:
1st = 0
2nd = 31
3rd = 62
4th = 93
Now you need to add an offset when addressing, depending on which snowflake you want to output the effect to.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question