I’m getting about 8fps sending a few channels of DMX on an Uno R3.
Any idea why it’s slow or how it can be sped up?
#include <DmxSimple.h>
void setup() {
DmxSimple.usePin(3); // using digital pin 3 for DMX output
/* Set up DMX to use Serial0 (the same one that goes to USB on
Arduino UNO and Pro Micro)
This homemade shield occupies pins 0, 1 (Serial0 - RX, TX) and
pin 4 (for RS485 direction)
Note: DMX channel set to 512 but you can set to your max required channel
*/
DmxSimple.maxChannel(512);
randomSeed(analogRead(0));
}
void loop() {
for (int ch = 93; ch <= 103; ch++)
{
int rand_val = random(0, 256);
DmxSimple.write(ch, rand_val);
}
delay(2); // changed from 41.7 (24fps)
}