summaryrefslogtreecommitdiffstatshomepage
path: root/docs/library/rp2.StateMachine.rst
Commit message (Collapse)AuthorAge
* docs/library/rp2.DMA: Add documentation for rp2 DMA support.Nicko van Someren2024-03-19
| | | | Signed-off-by: Nicko van Someren <nicko@nicko.org>
* all: Fix "reuse" and "overridden" spelling mistakes.Damien George2024-01-05
| | | | | | | Codespell doesn't pick up "re-used" or "re-uses", and ignores the tests/ directory, so fix these manually. Signed-off-by: Damien George <damien@micropython.org>
* rp2: Make rp2_state_machine_exec accept integers.Adam Green2023-05-18
| | | | | | | | | | | | | | | | | | | | | | | | Currently rp2.StateMachine.exec(instr_in) requires that the instr_in parameter be a string representing the PIO assembly language instruction to be encoded by rp2.asm_pio_encode(). This commit allows the parameter to also be of integral type. This is useful if the exec() method is being called often where the use of pre-encoded machine code is desireable. This commit still supports calls like: sm.exec("set(0, 1)") It also now supports calls like: # Performed once earlier, maybe in __init__() assembled_instr = rp2.asm_pio_encode("out(y, 8)", 0) # Performed multiple times later as the PIO state machine is # configured for its next run. sm.exec(assembled_instr) The existing examples/rp2/pio_exec.py and examples/rp2/pio_pwm.py that exercise the rp2.StateMachine.exec() method still work with this change. Signed-off-by: Adam Green <adamgrym@yahoo.com>
* docs/library/rp2.StateMachine: Expand put() documentation.Paul Warren2023-01-12
| | | | | | | | Document that put() can also accept arrays/bytearrays as values. Fixes issue #10465. Signed-off-by: Paul Warren <pdw@ex-parrot.com>
* docs/library/rp2: Fix pull_thresh docs to use pull instead of push.Nathan Hendler2022-08-11
|
* docs/library: Add initial API reference for rp2 module and its classes.Tim Radvan2021-05-08
All the method signatures from rp2_pio.c and friends have been taken and converted to RST format, then explanatory notes added for each signature. Signed-off-by: Tim Radvan <tim@tjvr.org>