EasyDMX is a library designed for sending and receiving DMX512 with an ESP32, aimed at providing simplicity and ease of use
- Easily send and receive DMX512 with an ESP32 and MAX485 (it takes just one line to get everything set up)
- Operate a transmitter and receiver at the same time
- Ability to transmit the received DMX data automatically
Create a new PlatformIO project and add the following to your platformio.ini
file (append to the existing lib_deps
if it already exists by creating a new line with the same indentation):
lib_deps =
https://github.com/tesa-klebeband/EasyDMX
Examples on different operating modes are provided in the examples
folder. To use EasyDMX in your project, include the library and create an instance of the EasyDMX
class. The following example demonstrates how to set up a simple dmx receiver that logs the received channels to the serial monitor:
#include <easydmx.h>
EasyDMX dmx;
void setup() {
Serial.begin(115200);
dmx.begin(DMXMode::Receive, DMXPin::Serial2Rx, DMXPin::NoTx);
}
void loop() {
for (int i = 1; i <= 512; i++) {
Serial.print(dmx.getChannel(i));
Serial.print(" ");
}
Serial.println();
delay(1000);
}
All files within this repo are released under the GNU GPL V3 License as per the LICENSE file stored in the root of this repo.