Skip to content

how to define START_CHANNEL during runtime? #40

Description

@stephanschulz

Thank you for making this library.

I am starting the process of converting some of my Teensy code to work on a PICO.
My project reads a dip switch to determine the DMX start channel.

In you example you define volatile uint8_t buffer[DMXINPUT_BUFFER_SIZE(START_CHANNEL, NUM_CHANNELS)]; befor the code starts.
Is there a way to either change the buffer or set the buffer during void setup() ?

I guess more specifically i wonder if i can call dmxInput.begin(0, START_CHANNEL, NUM_CHANNELS); again after a dip switch change was noticed? Do i need to call dmxInput.end() first?

Thank you for your advice.

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