You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//| """Write the data contained in ``buffer`` to the state machine repeatedly until stopped. If the buffer is empty or None, an existing continuous_write is canceled.
431
431
//|
432
432
//| Writes to the FIFO will match the input buffer's element size. For example, bytearray elements
433
433
//| will perform 8 bit writes to the PIO FIFO. The RP2040's memory bus will duplicate the value into
434
434
//| the other byte positions. So, pulling more data in the PIO assembly will read the duplicated values.
435
435
//|
436
436
//| To perform 16 or 32 bits writes into the FIFO use an `array.array` with a type code of the desired
437
-
//| size.
437
+
//| size, or use `memoryview.cast` to change the interpretation of an existing buffer.
438
438
//|
439
439
//| To atomically change from one buffer to another, simply call
440
-
//| `StateMachine.continuous_write` again with a different buffer.
441
-
//| The call will only return once outputting the new buffer has started.
440
+
//| `StateMachine.continuous_write` again with a different buffer with the same element size.
441
+
//| The call will only return once DMA has started putting the previous
442
+
//| buffer's data into the PIO FIFO.
442
443
//|
443
444
//| If the buffer is modified while it is being written out, the updated
444
445
//| values will be used. However, because of interactions between CPU
0 commit comments