Hi guys, newbie here and i need some help. I just bought this item (WS2812 8x8 rgb led matrix) from aliexpress and I can’t seem to make it work properly.
I tried the tutorial from fastled website but I can only make the first led blink.
im trying to power it using an 1850 battery and an LM2596 buck converter at 5v.
am i missing something? do i need to put some extra codes or something or is the current flow too low? the LM2596 is supposed to give out 3A.
@Jaja1 is the ground of the arduino plugged with the ground of your power supply ? If yes
Try this in your code reduce the NUM_LEDS to 5 and power the leds using the arduino pins.
The 2812 should work even with a lower voltage
Stupid question are you connecting to the GPIO 6 and not the 6th PIN ?
Just noticed the i++; statement but still… I think that loop() re-initialises the variables each time it gets executed and therefore always sets i = 0 !!
Even though Jaja’s code above isn’t exactly what we’re use to seeing, it SHOULD work. (The code worked for me when I tested it.)
Also, Jaja, when sharing code please put it on http://gist.github.com and share the link. This way it will always be formatted correctly on all devices and line numbers can be referenced for discussion.
@Yves_BAZIN I have to admit I did not even try the code and only offered a wild guess. I just remembered something about static variables and incorrectly applied the meaning in this context.