diff options
| author | Adam Greig <[email protected]> | 2023-10-15 00:45:42 +0100 |
|---|---|---|
| committer | Adam Greig <[email protected]> | 2023-10-15 00:47:56 +0100 |
| commit | 7559f9e5834799b041d899767ef4305dcfdf0181 (patch) | |
| tree | 7c94db16968031098af5dd0e4ea94f732fd08cd8 /README.md | |
| parent | c8fdbe19f91a02b86008c73ba021d8e7d2f4986b (diff) | |
time: Update documentation to use new after_x convenience methods
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -62,9 +62,9 @@ async fn blink(pin: AnyPin) { | |||
| 62 | loop { | 62 | loop { |
| 63 | // Timekeeping is globally available, no need to mess with hardware timers. | 63 | // Timekeeping is globally available, no need to mess with hardware timers. |
| 64 | led.set_high(); | 64 | led.set_high(); |
| 65 | Timer::after(Duration::from_millis(150)).await; | 65 | Timer::after_millis(150).await; |
| 66 | led.set_low(); | 66 | led.set_low(); |
| 67 | Timer::after(Duration::from_millis(150)).await; | 67 | Timer::after_millis(150).await; |
| 68 | } | 68 | } |
| 69 | } | 69 | } |
| 70 | 70 | ||
