Struct serpente::Pins [−][src]
pub struct Pins {Show 14 fields
pub port: Port,
pub d0: Pa4<Input<Floating>>,
pub d1: Pa5<Input<Floating>>,
pub d2: Pa6<Input<Floating>>,
pub d3: Pa7<Input<Floating>>,
pub d4: Pa8<Input<Floating>>,
pub d5: Pa9<Input<Floating>>,
pub led_g: Pa19<Input<Floating>>,
pub led_r: Pa22<Input<Floating>>,
pub led_b: Pa23<Input<Floating>>,
pub flash_mosi: Pa16<Input<Floating>>,
pub flash_miso: Pa18<Input<Floating>>,
pub flash_sck: Pa17<Input<Floating>>,
pub flash_cs: Pa15<Input<Floating>>,
}
Expand description
Maps the pins to their arduino names and the numbers printed on the board.
Fields
port: Port
Opaque port reference
d0: Pa4<Input<Floating>>
SPI MOSI UART TX2
d1: Pa5<Input<Floating>>
SPI SCK, UART RX2
d2: Pa6<Input<Floating>>
SPI MISO
d3: Pa7<Input<Floating>>
Digital/Analog
d4: Pa8<Input<Floating>>
I2C SDA, UART TX
d5: Pa9<Input<Floating>>
I2C SCL, UART RX
led_g: Pa19<Input<Floating>>
RGB LED, PWM capable
led_r: Pa22<Input<Floating>>
led_b: Pa23<Input<Floating>>
flash_mosi: Pa16<Input<Floating>>
SPI Flash
flash_miso: Pa18<Input<Floating>>
flash_sck: Pa17<Input<Floating>>
flash_cs: Pa15<Input<Floating>>