jostlowe / Pico-DMX

A library for inputting and outputting the DMX512-A lighting control protocol from a Raspberry Pi Pico
BSD 3-Clause "New" or "Revised" License
193 stars 22 forks source link

write not sending channel 512 #44

Closed P4LIL closed 1 year ago

P4LIL commented 1 year ago

setting num channels to 512 with dmxOutput.write(workingBuffer, NUM_CHANNELS); where NUM_CHANNELS is 512, doesnt seem to send channel 512, but dmxOutput.write(workingBuffer, NUM_CHANNELS+1); does. small issue thanks Paul

jostlowe commented 1 year ago

Hi!

Take a look at the examples at the main page. You should add 1 to the number of channels you want to send to account for the start code of the DMX-frame. If you want to send a full-sized universe of 512 channels, the size of your working buffer should be 513, where the 0'th channel is your start code

P4LIL commented 1 year ago

thanks, my mistake, was using your example file highlight_all