pub struct Pin<T>(pub T);
Expand description

Wrapper around a pin

Provides an implementation of embedded_hal::digital::blocking::OutputPin (that is, the OutputPin from the latest alpha version of embedded-hal) for all types that implement OutputPin from the latest stable version of embedded-hal.

Tuple Fields

0: T

Trait Implementations

Error type

Drives the pin low Read more

Drives the pin high Read more

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

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.

Casts the value.

Casts the value.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Performs the conversion.

Performs the conversion.

Casts the value.

Casts the value.

Should always be Self

Casts the value.

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.

Casts the value.

Casts the value.