There is `sleep_ms()` or `sleep_us()` if you want to use slightly lower power or `busy_wait_ms()` and `busy_wait_us()` if you are happy to have the processor loop... note the latter will wake up sooner after the microsecond ticks to the right value but both should keep an accurate period.
you can use `busy_wait_at_least_cycles()` for delays < 1us
you can use `busy_wait_at_least_cycles()` for delays < 1us
Statistics: Posted by kilograham — Sat Nov 30, 2024 7:42 pm