pub struct Pins {
pub port: Port,
pub d0: Pa4<Input<Floating>>,
pub d1: Pa2<Input<Floating>>,
pub d2: Pa5<Input<Floating>>,
pub d13: Pa23<Input<Floating>>,
pub mosi: Pa0<Input<Floating>>,
pub sck: Pa1<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>>
I2C SDA, UART TX, SPI MOSI
d1: Pa2<Input<Floating>>
ADC, DAC
d2: Pa5<Input<Floating>>
I2C SCL, UART RX, SPI CLK
d13: Pa23<Input<Floating>>
Digital pin number 13, which is also attached to the red LED. PWM capable.
mosi: Pa0<Input<Floating>>
§sck: Pa1<Input<Floating>>
Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Pins
impl Send for Pins
impl Sync for Pins
impl Unpin for Pins
impl UnwindSafe for Pins
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more