Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <DmxDue.h>
- //------------------------------------
- void setup()
- {
- DmxDue1.begin();
- DmxDue2.begin();
- DmxDue3.begin();
- }
- //------------------------------------
- void loop()
- {
- byte Canais = 255;
- DmxDue1.setTxMaxChannels(Canais);
- DmxDue2.setTxMaxChannels(Canais);
- DmxDue3.setTxMaxChannels(Canais);
- DmxDue1.beginWrite();
- DmxDue1.markAfterBreak();
- DmxDue2.beginWrite();
- DmxDue2.markAfterBreak();
- DmxDue3.beginWrite();
- DmxDue3.markAfterBreak();
- for (int i = 1; i < (Canais + 1); i++)
- {
- DmxDue1.write(i, i + 1);
- DmxDue1.IrqHandler();
- DmxDue2.write(i, i + 1);
- DmxDue2.IrqHandler();
- DmxDue3.write(i, i + 1);
- DmxDue3.IrqHandler();
- delayMicroseconds(50);
- }
- delayMicroseconds(1000);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement