Change GPIO inherent methods back to &self
.
With the embedded-hal rc3 update I changed them to require `&mut self`, but in retrospect I think `&self` is better, for extra flexibility. This PR reverts the changes from the rc3 update to inherent methods.
This commit is contained in:
parent
67ed134479
commit
495b8b739a
23 changed files with 157 additions and 192 deletions
docs/modules/ROOT/examples/layer-by-layer/blinky-hal/src
|
@ -9,7 +9,7 @@ use {defmt_rtt as _, panic_probe as _};
|
|||
fn main() -> ! {
|
||||
let p = embassy_stm32::init(Default::default());
|
||||
let mut led = Output::new(p.PB14, Level::High, Speed::VeryHigh);
|
||||
let mut button = Input::new(p.PC13, Pull::Up);
|
||||
let button = Input::new(p.PC13, Pull::Up);
|
||||
|
||||
loop {
|
||||
if button.is_low() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue