mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-27 12:20:56 +00:00
migration: Fix example to use correct method .with_pull(...)
(#3145)
This commit is contained in:
parent
acbb98339c
commit
1a40e3419b
@ -244,7 +244,7 @@ GPIO drivers now take configuration structs.
|
||||
|
||||
```diff
|
||||
- Input::new(peripherals.GPIO0, Pull::Up);
|
||||
+ Input::new(peripherals.GPIO0, InputConfig::default().with_pull_direction(Pull::Up));
|
||||
+ Input::new(peripherals.GPIO0, InputConfig::default().with_pull(Pull::Up));
|
||||
|
||||
- Output::new(peripherals.GPIO0, Level::Low);
|
||||
+ Output::new(peripherals.GPIO0, Level::Low, OutputConfig::default());
|
||||
|
Loading…
x
Reference in New Issue
Block a user