There's a small glitch in the DMX input code: When either DMA channels are in use before configuring a DmxInput instance, the read will fail. Reason is that not the DMA channel was given to dma_channel_set_irq0_enabled but instead the number of the state machine.
In the examples, those were identical by accident. In the real world, they might not always be.
There's a small glitch in the DMX input code: When either DMA channels are in use before configuring a DmxInput instance, the read will fail. Reason is that not the DMA channel was given to
dma_channel_set_irq0_enabled
but instead the number of the state machine. In the examples, those were identical by accident. In the real world, they might not always be.