209a6bb6b7
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> |
||
---|---|---|
.. | ||
pio_1hz.py | ||
pio_exec.py | ||
pio_pinchange.py | ||
pio_pwm.py | ||
pio_uart_rx.py | ||
pio_uart_tx.py | ||
pio_ws2812.py | ||
pwm_fade.py |