Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3881

SDK • Re: how use gpio delay time microseconds ?

$
0
0
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

Statistics: Posted by kilograham — Sat Nov 30, 2024 7:42 pm



Viewing all articles
Browse latest Browse all 3881

Trending Articles