diff options
| author | Dario Nieuwenhuis <[email protected]> | 2024-01-09 23:06:43 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-01-09 23:06:43 +0000 |
| commit | 8c166272d88e2bbcc5b62dccc9c5800b5f50cca3 (patch) | |
| tree | 6cc6597e9dfa6ac75736ebd4be4a63ca4b546771 /examples/rp/src | |
| parent | 67ed134479886023ec133a3a95074972e6d83236 (diff) | |
| parent | 495b8b739aaba3d1fe7e105559c830496fabb1d7 (diff) | |
Merge pull request #2421 from embassy-rs/shared-gpio
Change GPIO inherent methods back to `&self`.
Diffstat (limited to 'examples/rp/src')
| -rw-r--r-- | examples/rp/src/bin/button.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/rp/src/bin/button.rs b/examples/rp/src/bin/button.rs index e9054fd48..4ad2ca3b7 100644 --- a/examples/rp/src/bin/button.rs +++ b/examples/rp/src/bin/button.rs | |||
| @@ -16,7 +16,7 @@ async fn main(_spawner: Spawner) { | |||
| 16 | 16 | ||
| 17 | // Use PIN_28, Pin34 on J0 for RP Pico, as a input. | 17 | // Use PIN_28, Pin34 on J0 for RP Pico, as a input. |
| 18 | // You need to add your own button. | 18 | // You need to add your own button. |
| 19 | let mut button = Input::new(p.PIN_28, Pull::Up); | 19 | let button = Input::new(p.PIN_28, Pull::Up); |
| 20 | 20 | ||
| 21 | loop { | 21 | loop { |
| 22 | if button.is_high() { | 22 | if button.is_high() { |
