OctoWS2811 independent outputs

Status
Not open for further replies.

hugo

New member
Hi!
I'm currently working on a project where i have to manage independently each output of the OctoWS2811 adaptator (on teensy 4.1), using Artnet protocol. I already tested the examples codes which are working fine.
I have one 56*5 and two 28*5 led matrix, so i have three outputs.
The first matrix is using 2 Artnet Universes, the two others 1 universe each.
So i wanted to split the led config into 3 like this :

Code:
const int leds1 = 280;    //OUTPUT1
byte pinout1[numPin1] = {2};
DMAMEM int displayMemory1[leds1 * 2];
int drawingMemory1[leds1 * 2];
OctoWS2811 output1(leds1, displayMemory1, drawingMemory1, config1, numPin1, pinout1);

const int leds2 = 140;    //OUTPUT2
const int numPin2 = 1;
byte pinout2[numPin2] = {14};
DMAMEM int displayMemory2[leds2 * 2];
int drawingMemory2[leds2 * 2];
OctoWS2811 output2(leds2, displayMemory2, drawingMemory2, config2, numPin2, pinout2);

const int leds3 = 140;    //OUTPUT3
const int numPin3 = 1;
byte pinout3[numPin3] = {7};
DMAMEM int displayMemory3[leds3 * 2];
int drawingMemory3[leds3 * 2];
OctoWS2811 output3(leds3, displayMemory3, drawingMemory3, config3, numPin3, pinout3);

Currently output 1 and 2 are not working, 3 is working. Something about the last config erasing the others?

Thank you for your advices!

Hugo
 
Last edited:
Status
Not open for further replies.
Back
Top