[]Struct arduino_mkrzero::Pins

pub struct Pins {
    pub port: Port,
    pub d0: Pa22<Input<Floating>>,
    pub d1: Pa23<Input<Floating>>,
    pub d2: Pa10<Input<Floating>>,
    pub d3: Pa11<Input<Floating>>,
    pub d4: Pb10<Input<Floating>>,
    pub d5: Pb11<Input<Floating>>,
    pub d6: Pa20<Input<Floating>>,
    pub d7: Pa21<Input<Floating>>,
    pub mosi: Pa16<Input<Floating>>,
    pub sck: Pa17<Input<Floating>>,
    pub miso: Pa19<Input<Floating>>,
    pub sda: Pa8<Input<Floating>>,
    pub scl: Pa9<Input<Floating>>,
    pub rx: Pb23<Input<Floating>>,
    pub tx: Pb22<Input<Floating>>,
    pub a0: Pa2<Input<Floating>>,
    pub a1: Pb2<Input<Floating>>,
    pub a2: Pb3<Input<Floating>>,
    pub a3: Pa4<Input<Floating>>,
    pub a4: Pa5<Input<Floating>>,
    pub a5: Pa6<Input<Floating>>,
    pub a6: Pa7<Input<Floating>>,
    pub usb_n: Pa24<Input<Floating>>,
    pub usb_p: Pa25<Input<Floating>>,
    pub usb_id: Pa18<Input<Floating>>,
    pub aref: Pa3<Input<Floating>>,
    pub sd_sck: Pa12<Input<Floating>>,
    pub sd_mosi: Pa13<Input<Floating>>,
    pub sd_ss: Pa14<Input<Floating>>,
    pub sd_miso: Pa15<Input<Floating>>,
    pub sd_cd: Pa27<Input<Floating>>,
    pub led_builtin: Pb8<Input<Floating>>,
    pub bottom_pad: Pa28<Input<Floating>>,
    pub adc_battery: Pb9<Input<Floating>>,
    pub xin32: Pa0<Input<Floating>>,
    pub xout32: Pa1<Input<Floating>>,
}

Maps the pins to their arduino names and the numbers printed on the board. Information from: https://github.com/arduino/ArduinoCore-samd/blob/master/variants/mkrzero/variant.cpp

Fields

port: Port

Opaque port reference

d0: Pa22<Input<Floating>>

Digital 0: PWM, TC

d1: Pa23<Input<Floating>>

Digital 1: PWM, TC

d2: Pa10<Input<Floating>>

Digital 2: PWM, TCC, ADC

d3: Pa11<Input<Floating>>

Digital 3: PWM, TCC, ADC

d4: Pb10<Input<Floating>>

Digital 4: PWM, TC

d5: Pb11<Input<Floating>>

Digital 5: PWM, TC

d6: Pa20<Input<Floating>>

Digital 6: PWM, TCC

d7: Pa21<Input<Floating>>

Digital 7: PWM, TCC

mosi: Pa16<Input<Floating>>

SPI MOSI: PWM, TCC

sck: Pa17<Input<Floating>>

SPI SCK

miso: Pa19<Input<Floating>>

SPI MISO: PWM, TC

sda: Pa8<Input<Floating>>

SDA

scl: Pa9<Input<Floating>>

SCL

rx: Pb23<Input<Floating>>

RX

tx: Pb22<Input<Floating>>

TX

a0: Pa2<Input<Floating>>

Analog 0: DAC

a1: Pb2<Input<Floating>>

Analog 1

a2: Pb3<Input<Floating>>

Analog 2

a3: Pa4<Input<Floating>>

Analog 3: PWM, TCC

a4: Pa5<Input<Floating>>

Analog 4: PWM, TCC

a5: Pa6<Input<Floating>>

Analog 5

a6: Pa7<Input<Floating>>

Analog 6

usb_n: Pa24<Input<Floating>>usb_p: Pa25<Input<Floating>>usb_id: Pa18<Input<Floating>>aref: Pa3<Input<Floating>>sd_sck: Pa12<Input<Floating>>sd_mosi: Pa13<Input<Floating>>sd_ss: Pa14<Input<Floating>>sd_miso: Pa15<Input<Floating>>sd_cd: Pa27<Input<Floating>>led_builtin: Pb8<Input<Floating>>

LED built into the board

bottom_pad: Pa28<Input<Floating>>adc_battery: Pb9<Input<Floating>>xin32: Pa0<Input<Floating>>xout32: Pa1<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]