Struct feather_m4::Pins
source · pub struct Pins {Show 25 fields
pub a0: Pin<PA02, Reset>,
pub a1: Pin<PA05, Reset>,
pub a2: Pin<PB08, Reset>,
pub a3: Pin<PB09, Reset>,
pub a4: Pin<PA04, Reset>,
pub a5: Pin<PA06, Reset>,
pub battery: Pin<PB01, Reset>,
pub d0: Pin<PB17, Reset>,
pub d1: Pin<PB16, Reset>,
pub d4: Pin<PA14, Reset>,
pub d5: Pin<PA16, Reset>,
pub d6: Pin<PA18, Reset>,
pub neopixel: Pin<PB03, Reset>,
pub d9: Pin<PA19, Reset>,
pub d10: Pin<PA20, Reset>,
pub d11: Pin<PA21, Reset>,
pub d12: Pin<PA22, Reset>,
pub d13: Pin<PA23, Reset>,
pub sda: Pin<PA12, Reset>,
pub scl: Pin<PA13, Reset>,
pub sck: Pin<PA17, Reset>,
pub mosi: Pin<PB23, Reset>,
pub miso: Pin<PB22, Reset>,
pub usb_dm: Pin<PA24, Reset>,
pub usb_dp: Pin<PA25, Reset>,
/* private fields */
}
Expand description
BSP replacement for the HAL
Pins
type
This type is intended to provide more meaningful names for the given pins.
Fields§
§a0: Pin<PA02, Reset>
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.
a1: Pin<PA05, Reset>
Analog Pin 1
a2: Pin<PB08, Reset>
Analog Pin 2
a3: Pin<PB09, Reset>
Analog Pin 3
a4: Pin<PA04, Reset>
Analog Pin 4
a5: Pin<PA06, Reset>
Analog Pin 5
battery: Pin<PB01, Reset>
Analog Vdiv (1/2 resistor divider for monitoring the battery)
d0: Pin<PB17, Reset>
Pin 0, UART rx
This field can also be accessed using the pin_alias!
macro with the following alternate names:
uart_rx,
d1: Pin<PB16, Reset>
Pin 1, UART tx
This field can also be accessed using the pin_alias!
macro with the following alternate names:
uart_tx,
d4: Pin<PA14, Reset>
Pin 4, PWM capable
d5: Pin<PA16, Reset>
Pin 5, PWM capable
d6: Pin<PA18, Reset>
Pin 6, PWM capable
neopixel: Pin<PB03, Reset>
Neopixel Pin
d9: Pin<PA19, Reset>
Pin 9, PWM capable. Also analog input (A7)
d10: Pin<PA20, Reset>
Pin 10, PWM capable
d11: Pin<PA21, Reset>
Pin 11, PWM capable
d12: Pin<PA22, Reset>
Pin 12, PWM capable
d13: Pin<PA23, Reset>
Pin 13, which is also attached to the red LED. PWM capable.
This field can also be accessed using the pin_alias!
macro with the following alternate names:
red_led, red_led_pwm,
sda: Pin<PA12, Reset>
The I2C data line
This field can also be accessed using the pin_alias!
macro with the following alternate names:
sda,
scl: Pin<PA13, Reset>
The I2C clock line
This field can also be accessed using the pin_alias!
macro with the following alternate names:
scl,
sck: Pin<PA17, Reset>
The SPI SCK
This field can also be accessed using the pin_alias!
macro with the following alternate names:
sclk,
mosi: Pin<PB23, Reset>
The SPI MOSI
This field can also be accessed using the pin_alias!
macro with the following alternate names:
mosi,
miso: Pin<PB22, Reset>
The SPI MISO
This field can also be accessed using the pin_alias!
macro with the following alternate names:
miso,
usb_dm: Pin<PA24, Reset>
The USB D- pad
This field can also be accessed using the pin_alias!
macro with the following alternate names:
usb_dm,
usb_dp: Pin<PA25, Reset>
The USB D+ pad
This field can also be accessed using the pin_alias!
macro with the following alternate names:
usb_dp,