summaryrefslogtreecommitdiff
path: root/tools/pyboard.py
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2022-12-15 18:32:10 +0100
committerDamien George <damien@micropython.org>2023-01-12 17:07:43 +1100
commit209a6bb6b7b39882e0efdf25eab29931fb2de859 (patch)
treef70f01ad6e54fcfdf85bab3e03aa13889bf59b98 /tools/pyboard.py
parent5890a17ae049aad39f97744cadf5844c06a5a4c0 (diff)
docs/rp2: Make LED have exactly 50% duty cycle in PIO 1Hz example.
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>
Diffstat (limited to 'tools/pyboard.py')
0 files changed, 0 insertions, 0 deletions