Skip to content

Probably Timing Issues, no DMX Output #203

@pilo1337

Description

@pilo1337

Hi,

i cant get this lib to work. my init code looks like this:

#define DMX_TX 7
#define DMX_RX 6
#define DMX_DIR 5
dmx_port_t dmxPort = 1;
dmx_packet_t packet;
byte dmxData[512];

dmx_config_t config = DMX_CONFIG_DEFAULT;
dmx_personality_t personalities[] = {};
int personality_count = 0;

dmx_driver_install(dmxPort, &config, personalities, personality_count);
dmx_set_pin(dmxPort, DMX_TX, DMX_RX, DMX_DIR);

// between this i use functions to fill the byteArray dmxData //

void loop() {
dmx_write(dmxPort, dmxData, 512);
dmx_send(dmxPort);
dmx_wait_sent(dmxPort, DMX_TIMEOUT_TICK);
delay(30);
}

my esp is a esp32 from heltec (wifi kit 32), with 240mhz clock.

observation: i have a cheap par56 led with an LED on the Backside which blinks when using a dmx controller. the blinking pattern is much faster when using the esp as a sender.

can some1 help?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions