Update time_keeping.adoc
This commit is contained in:
parent
da86c08651
commit
b2f7ce99d6
@ -16,6 +16,7 @@ The `embassy::time::Timer` type provides two timing methods.
|
|||||||
|
|
||||||
An example of a delay is provided as follows:
|
An example of a delay is provided as follows:
|
||||||
|
|
||||||
|
TIP: The depenencies you need to run this example link:/book/dev/basic_application.html#_the_cargo_toml[can be found here].
|
||||||
[,rust]
|
[,rust]
|
||||||
----
|
----
|
||||||
use embassy::executor::{task, Executor};
|
use embassy::executor::{task, Executor};
|
||||||
@ -40,6 +41,7 @@ that expect a generic delay implementation to be provided.
|
|||||||
|
|
||||||
An example of how this can be used:
|
An example of how this can be used:
|
||||||
|
|
||||||
|
TIP: The depenencies you need to run this example link:/book/dev/basic_application.html#_the_cargo_toml[can be found here].
|
||||||
[,rust]
|
[,rust]
|
||||||
----
|
----
|
||||||
use embassy::executor::{task, Executor};
|
use embassy::executor::{task, Executor};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user