Hi all,
I’ve got two single horizontal rows of 20 LEDs (40 in total) and the effect I’m after is a VU meter that radiates out from the center on both rows (like the old magic eye tubes). I’ve managed to get half of the effects working (radiating out from the middle going left) but I need some help finding a way of mirroring this for both rows.
I did try playing with this mirror code I found, but I'm not clever enough to make it do what I want.
void mirror() {
for (uint8_t i = 0; i > offset; i++) {
leds[NUM_LEDS - 1 - i] = leds[i];
}
}
For this effect both rows will be the same, but I may want to use both rows independently for other effects, so ideally I’d like to keep them as one 40LED string rather than two parallel 20s.
Any help would be greatly appreciated.
Thanks. They’re WS2815, but as I said in the op, I’d like address them all individually for other modes so parallel isn’t an option. Plus, I’d still not have the mirrored effect I’m looking for.
Perhaps I did not understand your layout? If they are parallel electrically, but running in opposite directions from a centre point, the pattern should be mirrored in the middle.
I’d like address them all individually for other modes
Please mention things like that up front in future.
Now you see the answer, do you still think you are not clever enough to work it out? I think you probably are clever enough but lack self confidence when it comes to coding.