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
187 stars 21 forks source link

Updated wait-time during bitloop #3

Closed pmAllport closed 3 years ago

pmAllport commented 3 years ago

Wait-time during bitloop is set to dmx_bit-2, but the instruction takes 1us, and thus measures at 5us intervals and not 6us. Updated to dmx_bit-2 -> dmx_bit-1 to account for the runtime of the instruction.

pmAllport commented 3 years ago

Sorry, this was an incorrect update. I did not account for the runtime of an extra instruction.