// Ensure all data is sent
Serial1.flush();
delay(2);
Serial1.end();
// Send Break & MAB
Serial1.begin(10000, SERIAL_8E1);
Serial1.write(0);
Serial1.flush();
Serial1.end();
// Send DMX start code 0
Serial1.begin(250000, SERIAL_8N2);
Serial1.write(0);
// Now send DMX data
for (int x = 0, x < maxChans, x++)
Serial1.write(dmxData[x]);
I am currently working on making my code work using interrupts to send the data as I want to output 2 universes and it's too slow using the main loop.