[−]Struct pygamer::pins::Pins
Maps the pins to their arduino names and the numbers printed on the board.
Fields
port: Port
Opaque port reference
speaker: Pa2<Input<Floating>>
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.
speaker_enable: Pa27<Input<Floating>>
enable speaker amplifier
a1: Pa5<Input<Floating>>
Analog pin 1
a2: Pb8<Input<Floating>>
Analog pin 2
a3: Pb9<Input<Floating>>
Analog pin 3
a4: Pa4<Input<Floating>>
Analog pin 4
a5: Pa6<Input<Floating>>
Analog pin 5
battery: Pb1<Input<Floating>>
Battery Measure (also Analog pin 6)
light: Pb4<Input<Floating>>
Light sensor (also Analog pin 7)
d2: Pb3<Input<Floating>>
Digital pin 2 (also Analog pin 8)
d3: Pb2<Input<Floating>>
Digital pin 3 (also Analog pin 9)
d5: Pa16<Input<Floating>>
Digital pin 5
d6: Pa18<Input<Floating>>
Digital pin 6
accel_irq: Pb14<Input<Floating>>
Accelerometer interrupt pin (also d7)
neopixel: Pa15<Input<Floating>>
Neopixel data line (controls all 5 neopixels, also d8)
d9: Pa19<Input<Floating>>
Digital pin 9
d10: Pa20<Input<Floating>>
Digital pin 10
d11: Pa21<Input<Floating>>
Digital pin 11
d12: Pa22<Input<Floating>>
Digital pin 12
d13: Pa23<Input<Floating>>
D13 LED/JACDAC
tft_mosi: Pb15<Input<Floating>>
TFT MOSI
tft_sck: Pb13<Input<Floating>>
TFT SCK
tft_reset: Pa0<Input<Floating>>
TFT Reset
tft_dc: Pb5<Input<Floating>>
TFT DC
tft_cs: Pb12<Input<Floating>>
TFT CS
tft_backlight: Pa1<Input<Floating>>
TFT Backlight (also Analog pin 7)
tx: Pb16<Input<Floating>>
Pin TX (d1)
rx: Pb17<Input<Floating>>
Pin RX (d0)
miso: Pb22<Input<Floating>>
Pin MISO
mosi: Pb23<Input<Floating>>
Pin MOSI
sck: Pa17<Input<Floating>>
Pin SCK
sda: Pa12<Input<Floating>>
STEMMA SDA
scl: Pa13<Input<Floating>>
STEMMA SCL
usb_dm: Pa24<Input<Floating>>
USB D- pin
usb_dp: Pa25<Input<Floating>>
USB D+ pin
sd_cs: Pa14<Input<Floating>>
SD card chip select (also d4)
joy_x: Pb7<Input<Floating>>
Joystick X
joy_y: Pb6<Input<Floating>>
Joystick Y
Button Latch
Button Out
Button Clock
flash_sck: Pb10<Input<Floating>>
qspi flash
flash_cs: Pb11<Input<Floating>>
flash_d0: Pa8<Input<Floating>>
flash_d1: Pa9<Input<Floating>>
flash_d2: Pa10<Input<Floating>>
flash_d3: Pa11<Input<Floating>>
Methods
impl Pins
pub fn new(port: PORT) -> Self
impl Pins
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,