[][src]Struct pygamer::pins::Sets

pub struct Sets {
    pub port: Port,
    pub display: Display,
    pub led_pin: Pa23<Input<Floating>>,
    pub neopixel: Neopixel,
    pub light_pin: Pb4<Input<Floating>>,
    pub i2c: I2C,
    pub sd_cs_pin: Pa14<Input<Floating>>,
    pub battery: Battery,
    pub speaker: Speaker,
    pub spi: SPI,
    pub usb: USB,
    pub uart: UART,
    pub analog: Analog,
    pub digital: Digital,
    pub flash: QSPIFlash,
    pub buttons: Buttons,
    pub joystick: Joystick,
}

Sets of pins split apart by category

Fields

port: Port

Port

display: Display

LCD Display

led_pin: Pa23<Input<Floating>>

Red Led

neopixel: Neopixel

Neopixel (RGB LED) pins

light_pin: Pb4<Input<Floating>>

Analog Light Sensor

i2c: I2C

I2C (connected to LIS3DH accelerometer and "Stemma" port)

sd_cs_pin: Pa14<Input<Floating>>

SD Card CS pin

battery: Battery

Battery Voltage

speaker: Speaker

Speaker (DAC not implemented in hal yet)

spi: SPI

SPI (connected to SD Card)

usb: USB

USB pins

uart: UART

UART (external pinout) pins

analog: Analog

Analog pins.

digital: Digital

Digital pins.

flash: QSPIFlash

Flash storage

buttons: Buttonsjoystick: Joystick

Auto Trait Implementations

impl Send for Sets

impl Sync for Sets

impl Unpin for Sets

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.