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
+
//|
432
+
//| Writes to the FIFO will match the input buffer's element size. For example, bytearray elements
433
+
//| will perform 8 bit writes to the PIO FIFO. The RP2040's memory bus will duplicate the value into
434
+
//| the other byte positions. So, pulling more data in the PIO assembly will read the duplicated values.
435
+
//|
436
+
//| To perform 16 or 32 bits writes into the FIFO use an `array.array` with a type code of the desired
437
+
//| size.
438
+
//|
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.
442
+
//|
443
+
//| If the buffer is modified while it is being written out, the updated
444
+
//| values will be used. However, because of interactions between CPU
445
+
//| writes, DMA and the PIO FIFO are complex, it is difficult to predict
446
+
//| the result of modifying multiple values. Instead, alternate between
447
+
//| a pair of buffers.
448
+
//|
449
+
//| :param ~circuitpython_typing.ReadableBuffer buffer: Write out the data in this buffer
450
+
//| :param int start: Start of the slice of ``buffer`` to write out: ``buffer[start:end]``
451
+
//| :param int end: End of the slice; this index is not included. Defaults to ``len(buffer)``"""
0 commit comments