diff options
author | Phil Howard <phil@gadgetoid.com> | 2024-07-02 17:39:02 +0100 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2024-10-15 12:09:48 +1100 |
commit | e6093c0fbdc7e9da5e044aaa4442bb125939aef9 (patch) | |
tree | bbe29ef0603647cf0ec1f895c94a8d439a27512d /docs/library | |
parent | a3d1c59ca3db93278624055074af081f8cf747e1 (diff) | |
download | micropython-e6093c0fbdc7e9da5e044aaa4442bb125939aef9.tar.gz micropython-e6093c0fbdc7e9da5e044aaa4442bb125939aef9.zip |
rp2/rp2_pio: Add support for RP2350A/B variants in PIO interface.
Add support for 32 and 48 pin variants of RP2350.
Add new `PIO.gpio_base()` method, mirroring the Pico SDK.
Signed-off-by: Phil Howard <phil@gadgetoid.com>
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'docs/library')
-rw-r--r-- | docs/library/rp2.PIO.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/library/rp2.PIO.rst b/docs/library/rp2.PIO.rst index e0675af1e9..f922456c8c 100644 --- a/docs/library/rp2.PIO.rst +++ b/docs/library/rp2.PIO.rst @@ -27,6 +27,17 @@ Constructors Methods ------- +.. method:: PIO.gpio_base([base]) + + Query and optionally set the current GPIO base for this PIO instance. + + If an argument is given then it must be a pin (or integer corresponding to a pin + number), restricted to either GPIO0 or GPIO16. The GPIO base will then be set to + that pin. Setting the GPIO base must be done before any programs are added or state + machines created. + + Returns the current GPIO base pin. + .. method:: PIO.add_program(program) Add the *program* to the instruction memory of this PIO instance. |