wait_timer
Crate for more accurate wait times than Delay using rp2040_hal::timer::Timer.
In addition to wait function that waits for a specified number of seconds,
gate function is implemented that keeps the time until it is re-executed constant.
How to use
- Create
rp2040_hal::timer::Timer.
let timer = new;
- Create
wait_timer::Wait.
let wait = new;
- Use
waitand/orgatemethods.
Methods
wait functions
More accurate waiting times than Delay.
wait.wait_us;
wait.wait_ms;
wait.wait_sec;
gate functions
Wait a specified number of seconds since the last execution.
loop
- A is ignored the first time.
- The process from A to B is executed in 500 milliseconds.
- Processes from B onwards (B to A) are executed in a second.