pub struct Output<const PIN: u8>;Expand description
GPIO output driver
Implementations§
Source§impl<const PIN: u8> Output<PIN>
impl<const PIN: u8> Output<PIN>
Sourcepub fn output_state(&self) -> bool
pub fn output_state(&self) -> bool
Read the output state/level of the pin.
Sourcepub fn set_output(&mut self, on: bool)
pub fn set_output(&mut self, on: bool)
Set the output state/level of the pin.
Trait Implementations§
Source§impl<const PIN: u8> StatefulOutputPin for Output<PIN>
Available on crate feature embedded-hal only.
impl<const PIN: u8> StatefulOutputPin for Output<PIN>
Available on crate feature
embedded-hal only.