i have a matrix of WS2812 led strips 30x24, trying to send it data from jinx! via the glediator protocol to a Due but I cant quite figure out whats going wrong, or really whats goin on with the code. ive tried every example code i could find for glediator or jinx but this is the best ive gotten so far (see video). i dont think its a power issue because im running it off a 5v 75 amp power supply. it shouldnt be a ground issue so im thinking its something in the code. any ideas? video
Robin2:
Each CRGB item might contain 3 bytes - one for each colour.
...R
you are correct. im just really confused by what the leds are doing when they are supposed to be displaying all red (in the video), i cant figure out why thats the outcome i get. do i need to create an array or something to use as a buffer for the serial data?
the only changes ive made were to the few #defines at the top. Ive tried all the sample/example glediator code i could find and this was the only one i could really get much of anything with. i think its because this way of going about reading the data loads the whole matrix worth of info into the array then displays it. the other examples used a for loop and replaced
Serial.readBytes((char*)leds, NUM_LEDS * 3);
with
for (int i=0; i < NUM_LEDS; i++) {
leds*.r = serialGlediator();*
_ leds*.g = serialGlediator();_ _ leds.b = serialGlediator();* but otherwise were the same_
i don't know if it works or not, the things i changed were meant to be changed, like #define NUM_LEDS #define DATA_PIN so im pretty sure thats not the problem but i know that it definitely wouldn't work as it was downloaded