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

View File

@@ -12,7 +12,7 @@ fn main() -> ! {
let p = embassy_stm32::init(Default::default());
let mut button = Input::new(p.PC13, Pull::Up);
let button = Input::new(p.PC13, Pull::Up);
loop {
if button.is_high() {