diff --git a/embassy-rp/src/gpio.rs b/embassy-rp/src/gpio.rs index 598759036..9cdba8bf3 100644 --- a/embassy-rp/src/gpio.rs +++ b/embassy-rp/src/gpio.rs @@ -127,8 +127,8 @@ impl<'d, T: Pin> Output<'d, T> { /// Is the output pin set as low? pub fn is_set_low(&self) -> bool { - // todo - true + // Reading from SIO: GPIO_OUT gives the last value written. + unsafe { self.pin.sio_out().value().read() == 0 } } }