[]Struct samd21_mini::Pins

pub struct Pins {
    pub port: Port,
    pub tx: Pa10<Input<Floating>>,
    pub rx: Pa11<Input<Floating>>,
    pub aref: Pa3<Input<Floating>>,
    pub d2: Pa14<Input<Floating>>,
    pub d3: Pa9<Input<Floating>>,
    pub d4: Pa8<Input<Floating>>,
    pub d5: Pa15<Input<Floating>>,
    pub d6: Pa20<Input<Floating>>,
    pub d7: Pa21<Input<Floating>>,
    pub d8: Pa6<Input<Floating>>,
    pub d9: Pa7<Input<Floating>>,
    pub d10: Pa18<Input<Floating>>,
    pub d11: Pa16<Input<Floating>>,
    pub d12: Pa19<Input<Floating>>,
    pub a3: Pa4<Input<Floating>>,
    pub a2: Pb9<Input<Floating>>,
    pub a1: Pb8<Input<Floating>>,
    pub a0: Pa2<Input<Floating>>,
    pub led: Pa17<Input<Floating>>,
    pub tx_led: Pa27<Input<Floating>>,
    pub rx_led: Pb3<Input<Floating>>,
    pub dm: Pa24<Input<Floating>>,
    pub dp: Pa25<Input<Floating>>,
}

Maps the pins to their arduino names and the numbers printed on the board.

Fields

port: Port

Opaque port reference

tx: Pa10<Input<Floating>>rx: Pa11<Input<Floating>>aref: Pa3<Input<Floating>>d2: Pa14<Input<Floating>>d3: Pa9<Input<Floating>>d4: Pa8<Input<Floating>>d5: Pa15<Input<Floating>>d6: Pa20<Input<Floating>>d7: Pa21<Input<Floating>>d8: Pa6<Input<Floating>>d9: Pa7<Input<Floating>>d10: Pa18<Input<Floating>>d11: Pa16<Input<Floating>>d12: Pa19<Input<Floating>>a3: Pa4<Input<Floating>>a2: Pb9<Input<Floating>>a1: Pb8<Input<Floating>>a0: Pa2<Input<Floating>>led: Pa17<Input<Floating>>

Digital pin number 13, which is also attached to the red LED. PWM capable.

tx_led: Pa27<Input<Floating>>rx_led: Pb3<Input<Floating>>dm: Pa24<Input<Floating>>dp: Pa25<Input<Floating>>

Methods

impl Pins

pub fn new(port: PORT) -> Self

Auto Trait Implementations

impl Send for Pins

impl Sync for Pins

Blanket Implementations

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

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