Struct microbit::hal::gpio::Pin [−][src]
pub struct Pin<MODE> { /* fields omitted */ }
Expand description
Generic $PX pin
Implementations
Convert the pin to be a floating input
Convert the pin to be a push-pull output with normal drive.
pub fn into_open_drain_output(
self,
config: OpenDrainConfig,
initial_output: Level
) -> Pin<Output<OpenDrain>>
pub fn into_open_drain_output(
self,
config: OpenDrainConfig,
initial_output: Level
) -> Pin<Output<OpenDrain>>
Convert the pin to be an open-drain output.
This method currently does not support configuring an internal pull-up or pull-down resistor.
Disconnects the pin.
In disconnected mode the pin cannot be used as input or output. It is primarily useful to reduce power usage.
Trait Implementations
Auto Trait Implementations
impl<MODE> RefUnwindSafe for Pin<MODE> where
MODE: RefUnwindSafe,
impl<MODE> UnwindSafe for Pin<MODE> where
MODE: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Performs the conversion.
Performs the conversion.
Casts the value.
Casts the value.
Casts the value.
Casts the value.