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.
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 calldmxInput.end()first?Thank you for your advice.