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:
Dario Nieuwenhuis 2024-01-09 23:58:26 +01:00
parent 67ed134479
commit 495b8b739a
23 changed files with 157 additions and 192 deletions
docs/modules/ROOT/examples/layer-by-layer/blinky-hal/src

View file

@ -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() {