I am trying to get my ESP32 to transmit DMX data, but cannot find a library. Does anyone know of any?
Posted: Wed May 13, 2020 8:12 pm
#include <ESPDMX.h>
DMXESPSerial dmx;
void setup() {
dmx.init(); // initialization for first 32 addresses by default
//dmx.init(512) // initialization for complete bus
delay(200); // wait a while (not necessary)
}
void loop() {
dmx.write(3, 0); // channal 3 off
dmx.write(1, 255); // channal 1 on
dmx.update(); // update the DMX bus
delay(1000); // wait for 1s
dmx.write(1, 0);
dmx.write(2, 255);
dmx.update();
delay(1000);
dmx.write(2, 0);
dmx.write(3, 255);
dmx.update();
delay(1000);
}
DMXESPSerial dmx;
void setup() {
dmx.init(); // initialization for first 32 addresses by default
//dmx.init(512) // initialization for complete bus
delay(200); // wait a while (not necessary)
}
void loop() {
dmx.write(3, 0); // channal 3 off
dmx.write(1, 255); // channal 1 on
dmx.update(); // update the DMX bus
delay(1000); // wait for 1s
dmx.write(1, 0);
dmx.write(2, 255);
dmx.update();
delay(1000);
dmx.write(2, 0);
dmx.write(3, 255);
dmx.update();
delay(1000);
}