summaryrefslogtreecommitdiffstatshomepage
path: root/docs/rp2
Commit message (Collapse)AuthorAge
* docs/rp2: Add network information to the rp2 quickref.Matt Trentini2025-03-25
| | | | | | | | | | | Some rp2 boards include WiFi, at least with the very popular Pico W and Pico 2 W. New users frequently ask how to set up WiFi and are confused because it's not covered in the quickref. This commit adds the wlan section, copied and modified with notes from the ESP32 quickref. Signed-off-by: Matt Trentini <matt.trentini@gmail.com>
* docs: Fix the quickref documentation of rtc.datetime().robert-hh2024-12-19
| | | | | | | Such that it matches the implementation and the documentation of the `machine.RTC` class. Signed-off-by: robert-hh <robert@hammelrath.com>
* docs/rp2: Add a small factory reset page.Angus Gratton2024-11-19
| | | | | | This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
* rp2/modmachine: Set the peripheral frequency with machine.freq().robert-hh2024-08-20
| | | | | | | | | | | | By default, the peripheral clock for UART and SPI is set to 48 MHz and will not be affected by the MCU clock change. This can be changed by a second argument to `machine.freq(freq, peripheral_freq)`. The second argument must be either 48 MHz or identical with the first argument. Note that UART and SPI baud rates may have to be re-configured after changing the MCU clock. Signed-off-by: robert-hh <robert@hammelrath.com>
* docs/rp2/quickref: Document the use of channel numbers for ADC.robert-hh2024-07-04
| | | | Signed-off-by: robert-hh <robert@hammelrath.com>
* docs: Update the PWM examples based on recent API improvements.robert-hh2023-05-04
| | | | | | | | This adds the freq and duty_u16 keyword settings to the constructor, and sometimes other details in the PWM section. For mimxrt a clarification regarding the PWM invert argument was added, and for rp2 a few words were spent on PWM output pairs of a channel/slice.
* all: Fix spelling mistakes based on codespell check.Damien George2023-04-27
| | | | Signed-off-by: Damien George <damien@micropython.org>
* docs/rp2: Make LED have exactly 50% duty cycle in PIO 1Hz example.Stig Bjørlykke2023-01-12
| | | | | | | | | This ensures the same number of cycles are used for LED on and LED off in the PIO 1Hz example. It's also possible to swap the first set() and the irq() to avoid using an extra instruction, but this tutorial is a good example of how to calculate the cycles. Signed-off-by: Stig Bjørlykke <stig@bjorlykke.org>
* rp2/machine_wdt: Check for the maximum timeout value of watchdog.robert-hh2022-08-23
| | | | | The value will be checked for timeout <= 8388. Notes were added to the documentation.
* docs: Update Raspberry Pi URLs from .org to .com.Andrew Scheller2022-06-14
|
* docs/rp2/quickref.rst: Add section on PIO.NitiKaur2021-11-19
|
* rp2/machine_i2s: Add I2S protocol support.Mike Teachman2021-11-13
| | | | | | | | | | | | | | | | | | | | | | This commit adds I2S protocol support for the rp2 port: - I2S API is consistent with STM32 and ESP32 ports - I2S configurations supported: - master transmit and master receive - 16-bit and 32-bit sample sizes - mono and stereo formats - sampling frequency - 3 modes of operation: - blocking - non-blocking with callback - uasyncio - internal ring buffer size can be tuned - DMA IRQs are managed on an I2S object basis, allowing other RP2 entities to use DMA IRQs when I2S is not being used - MicroPython documentation - tested on Raspberry Pi Pico development board - build metric changes for this commit: text(+4552), data(0), bss(+8) Signed-off-by: Mike Teachman <mike.teachman@gmail.com>
* docs/rp2/general.rst: Fix typo with missing spaces.Andrew Scheller2021-11-01
|
* docs/rp2: Add reference for PIO assembly instructions, and PIO tutorial.NitiKaur2021-10-13
|
* docs: Replace ufoo with foo in all docs.Jim Mussared2021-08-13
| | | | | | | | | | | | | | | | | | | | | | Anywhere a module is mentioned, use its "non-u" name for consistency. The "import module" vs "import umodule" is something of a FAQ, and this commit intends to help clear that up. As a first approximation MicroPython is Python, and so imports should work the same as Python and use the same name, to a first approximation. The u-version of a module is a detail that can be learned later on, when the user wants to understand more and have finer control over importing. Existing Python code should just work, as much as it is possible to do that within the constraints of embedded systems, and the MicroPython documentation should match the idiomatic way to write Python code. With universal weak links for modules (via MICROPY_MODULE_WEAK_LINKS) users can consistently use "import foo" across all ports (with the exception of the minimal ports). And the ability to override/extend via "foo.py" continues to work well. Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
* docs/rp2: Update general section to give a brief technical overview.NitiKaur2021-07-20
|
* docs/rp2: Enhance quickref and change image to Pico pinout.NitiKaur2021-07-20
|
* docs: Replace master/slave with controller/peripheral in I2C and SPI.David P2021-07-18
| | | | See https://www.oshwa.org/a-resolution-to-redefine-spi-signal-names
* rp2: Use 0=Monday datetime convention in RTC.Krzysztof Adamski2021-06-25
| | | | | | | | | | | | The RTC in rp2 can store any, even wrong, number as a weekday in RTC. It was, however, discussed in #7394 that we would like to unify all ports and use 0 as Monday, not Sunday in the machine.RTC implementation. This patch makes sure that the default date set in RTC is adheres to this convention. It also fixes the example in quickref to use proper weekday to avoid confusion. Signed-off-by: Krzysztof Adamski <k@japko.eu>
* docs/rp2: Add skeleton docs for the rp2 port.Matt Trentini2021-05-30