summaryrefslogtreecommitdiff
path: root/ports/raspberrypi/bindings/rp2pio
AgeCommit message (Collapse)Author
2021-03-15Merge branch 'main' into rp_dp_parallelMark
2021-03-15run code formatting scriptmicroDev
2021-03-11Set the statemachine to never reset so REPL worksgamblor21
2021-03-05WIPrp2040: Implement IncrementalEncoderJeff Epler
Any two consecutive pins can be used for an IncrementalEncoder Testing performed: Put a synthesized (few hundred counts per second) quadrature signal into GP2/3 and read the encoder out. Performed filesystem operations at the same time to stress test it. The reasons for not using common_hal_rp2pio_statemachine_readinto are commented on.
2021-03-04rp2pio: Add pins_are_sequentialJeff Epler
This can be used where the standard API calls for a list of pins, to check that they satisfy the requirements of the rp2pio state machine, e.g., ```python def __init__(self, pin_a, pin_b): if not rp2pio.pins_are_sequential([pin_a, pin_b]): raise ValueError("Pins must be sequential") ```
2021-03-04StateMachine: Add pull up/down for inputsJeff Epler
2021-03-04StateMachine: Add in_available propertyJeff Epler
I named the property `in_available` because it is similar to pyserial. However, it indicates the number of words in the fifo, not the number of bytes.
2021-03-02Apply suggestions from code review Dan Halbert
copyediting
2021-02-27Update StateMachine.cJonny Bergdahl
Changed woring to use max instead
2021-02-23Implement audiobusio and enhance PIO for itScott Shawcroft
This adds I2SOut and PDMIn support via PIO. StateMachines can now: * read and read while writing * transfer in 1, 2 or 4 byte increments * init pins based on expected defaults automatically * be stopped and restarted * rxfifo can be cleared and rxstalls detected (good for tracking when the reading code isn't keeping up) Fixes #4162
2021-02-06Fix maximum PIO instructionsJason Nichols
2021-01-21copy editingScott Shawcroft
2021-01-20type fixScott Shawcroft
2021-01-20Add initial RP2040 supportScott Shawcroft
The RP2040 is new microcontroller from Raspberry Pi that features two Cortex M0s and eight PIO state machines that are good for crunching lots of data. It has 264k RAM and a built in UF2 bootloader too. Datasheet: https://pico.raspberrypi.org/files/rp2040_datasheet.pdf