aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2024-01-09 23:06:43 +0000
committerGitHub <[email protected]>2024-01-09 23:06:43 +0000
commit8c166272d88e2bbcc5b62dccc9c5800b5f50cca3 (patch)
tree6cc6597e9dfa6ac75736ebd4be4a63ca4b546771 /docs
parent67ed134479886023ec133a3a95074972e6d83236 (diff)
parent495b8b739aaba3d1fe7e105559c830496fabb1d7 (diff)
Merge pull request #2421 from embassy-rs/shared-gpio
Change GPIO inherent methods back to `&self`.
Diffstat (limited to 'docs')
-rw-r--r--docs/modules/ROOT/examples/layer-by-layer/blinky-hal/src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/modules/ROOT/examples/layer-by-layer/blinky-hal/src/main.rs b/docs/modules/ROOT/examples/layer-by-layer/blinky-hal/src/main.rs
index 54b87662e..d0c9f4907 100644
--- a/docs/modules/ROOT/examples/layer-by-layer/blinky-hal/src/main.rs
+++ b/docs/modules/ROOT/examples/layer-by-layer/blinky-hal/src/main.rs
@@ -9,7 +9,7 @@ use {defmt_rtt as _, panic_probe as _};
9fn main() -> ! { 9fn main() -> ! {
10 let p = embassy_stm32::init(Default::default()); 10 let p = embassy_stm32::init(Default::default());
11 let mut led = Output::new(p.PB14, Level::High, Speed::VeryHigh); 11 let mut led = Output::new(p.PB14, Level::High, Speed::VeryHigh);
12 let mut button = Input::new(p.PC13, Pull::Up); 12 let button = Input::new(p.PC13, Pull::Up);
13 13
14 loop { 14 loop {
15 if button.is_low() { 15 if button.is_low() {