Struct metro_m0::Pins [] [src]

pub struct Pins {
    pub port: Port,
    pub a0: Pa2<Input<Floating>>,
    pub a1: Pb8<Input<Floating>>,
    pub a2: Pb9<Input<Floating>>,
    pub a3: Pa4<Input<Floating>>,
    pub a4: Pa5<Input<Floating>>,
    pub a5: Pb2<Input<Floating>>,
    pub d0: Pa11<Input<Floating>>,
    pub d1: Pa10<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 d13: Pa17<Input<Floating>>,
    pub sda: Pa22<Input<Floating>>,
    pub scl: Pa23<Input<Floating>>,
    pub neopixel: Pa30<Input<Floating>>,
    pub sck: Pb11<Input<Floating>>,
    pub mosi: Pb10<Input<Floating>>,
    pub miso: Pa12<Input<Floating>>,
    pub flash_sck: Pb23<Input<Floating>>,
    pub flash_mosi: Pb22<Input<Floating>>,
    pub flash_miso: Pb3<Input<Floating>>,
    pub flash_cs: Pa13<Input<Floating>>,
}

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

Fields

Opaque port reference

Analog pin 0. Can act as a true analog output as it has a DAC (which is not currently supported by this hal) as well as input.

Analog Pin 1

Analog Pin 2

Analog Pin 3

Analog Pin 4

Analog Pin 5

Pin 0, rx. Also analog input (A6)

Pin 1, tx. Also analog input (A7)

Pin 2

Pin 3, PWM capable

Pin 4, PWM capable. Also analog input (A8)

Pin 5, PWM capable. Also analog input (A9)

Pin 6, PWM capable

Pin 7

Pin 8, PWM capable. Also analog input (A10)

Pin 9, PWM capable. Also analog input (A11)

Pin 10, PWM capable

Pin 11, PWM capable

Pin 12, PWM capable

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

The data line attached to the neopixel. Is also attached to SWCLK.

The SPI SCK attached the to 2x3 header

The SPI MOSI attached the to 2x3 header

The SPI MISO attached the to 2x3 header

The SCK pin attached to the on-board SPI flash

The MOSI pin attached to the on-board SPI flash

The MISO pin attached to the on-board SPI flash

The CS pin attached to the on-board SPI flash

Trait Implementations

Auto Trait Implementations

impl Send for Pins

impl Sync for Pins