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.

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

Error type

Is the input pin high?

Is the input pin low?

Set the output as high.

Set the output as low.

Error type

Drives the pin high or low depending on the provided value Read more

Is the output pin set as high?

Is the output pin set as low?

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Casts the value.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Casts the value.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Casts the value.

Should always be Self

Casts the value.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Casts the value.

Casts the value.