Skip to content

EasyDMX is a library designed for sending and receiving DMX512 with an ESP32, aimed at providing simplicity and ease of use

License

Notifications You must be signed in to change notification settings

tesa-klebeband/EasyDMX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EasyDMX

PlatformIO Registry GitHub Issues or Pull Requests GitHub License GitHub Repo stars GitHub forks image

EasyDMX is a library designed for sending and receiving DMX512 with an ESP32, aimed at providing simplicity and ease of use

Features

  • 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

Installation

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

Using 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);
}

License

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.

About

EasyDMX is a library designed for sending and receiving DMX512 with an ESP32, aimed at providing simplicity and ease of use

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages