mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-25 08:12:30 +00:00
Update sharing_peripherals.adoc
This commit is contained in:
parent
b2f7ce99d6
commit
b03f23ab64
@ -8,6 +8,7 @@ The following examples shows different ways to use the on-board LED on a Raspber
|
||||
|
||||
Using mutual exclusion is the simplest way to share a peripheral.
|
||||
|
||||
TIP: The depenencies you need to run this example link:/book/dev/basic_application.html#_the_cargo_toml[can be found here].
|
||||
[,rust]
|
||||
----
|
||||
use defmt::*;
|
||||
@ -77,6 +78,7 @@ To indicate that the pin will be set to an Output. The `AnyPin` could have been
|
||||
|
||||
A channel is another way to ensure exclusive access to a resource. Using a channel is great in the cases where the access can happen at a later point in time, allowing you to enqueue operations and do other things.
|
||||
|
||||
TIP: The depenencies you need to run this example link:/book/dev/basic_application.html#_the_cargo_toml[can be found here].
|
||||
[,rust]
|
||||
----
|
||||
use defmt::*;
|
||||
|
Loading…
Reference in New Issue
Block a user