[][src]Struct d1_mini::Pins

pub struct Pins {
    pub d0: Gpio16<Input<Floating>>,
    pub d1: Gpio5<Input<Floating>>,
    pub d2: Gpio4<Input<Floating>>,
    pub d3: Gpio0<Input<Floating>>,
    pub d4: Gpio2<Input<Floating>>,
    pub d5: Gpio14<UnInitialized>,
    pub d6: Gpio12<UnInitialized>,
    pub d7: Gpio13<UART>,
    pub d8: Gpio15<UART>,
    pub rx: Gpio3<UART>,
    pub tx: Gpio1<UART>,
}

Maps labelled pin names to their physical pins.

Fields

d0: Gpio16<Input<Floating>>

Digital pin 0

d1: Gpio5<Input<Floating>>

Digital pin 1, SCL

d2: Gpio4<Input<Floating>>

Digital pin 2, SDA

d3: Gpio0<Input<Floating>>

Digital pin 3 (10k pull-up)

d4: Gpio2<Input<Floating>>

Digital pin 4 (10k pull-up), built-in LED

d5: Gpio14<UnInitialized>

Digital pin 5, SCK

d6: Gpio12<UnInitialized>

Digital pin 6, MISO

d7: Gpio13<UART>

Digital pin 7, MOSI, CTS

d8: Gpio15<UART>

Digital pin 8 (10k pull-down), SS, RTS

rx: Gpio3<UART>

UART receive pin

tx: Gpio1<UART>

UART transmit pin

Implementations

impl Pins[src]

pub fn new(gpio: GPIO) -> Self[src]

Returns the pins for the device.

Auto Trait Implementations

impl Send for Pins

impl Sync for Pins

impl Unpin for Pins

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.