summaryrefslogtreecommitdiffstatshomepage
path: root/examples/rp2/pio_1hz.py
Commit message (Collapse)AuthorAge
* examples: Mark asm, pio, etc. as noqa: F821 (undefined-name).Angus Gratton2023-08-16
| | | | | | | | | | | These files all use decorators (@asm_thumb, @asm_pio) that add names to the function scope, that the linter cannot see. It's useful to clear them in the file not in pyproject.toml as example code will be copied and adapted elsewhere, and those developers may also use Ruff (we hope!) Signed-off-by: Angus Gratton <angus@redyak.com.au>
* examples/rp2: Add comment that examples using IO25 don't work on Pico W.Damien George2023-02-07
| | | | 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: Add new port to Raspberry Pi RP2 microcontroller.Damien George2021-01-30
This commit adds a new port "rp2" which targets the new Raspberry Pi RP2040 microcontroller. The build system uses pure cmake (with a small Makefile wrapper for convenience). The USB driver is TinyUSB, and there is a machine module with most of the standard classes implemented. Some examples are provided in the examples/rp2/ directory. Work done in collaboration with Graham Sanderson. Signed-off-by: Damien George <damien@micropython.org>