Struct DisplayPins

Source
pub struct DisplayPins {
    pub pin4: PIN4<Input<Floating>>,
    pub pin5: PIN5<Input<Floating>>,
    pub pin6: PIN6<Input<Floating>>,
    pub pin7: PIN7<Input<Floating>>,
    pub pin8: PIN8<Input<Floating>>,
    pub pin9: PIN9<Input<Floating>>,
    pub pin10: PIN10<Input<Floating>>,
    pub pin11: PIN11<Input<Floating>>,
    pub pin12: PIN12<Input<Floating>>,
    pub pin13: PIN13<Input<Floating>>,
    pub pin14: PIN14<Input<Floating>>,
    pub pin15: PIN15<Input<Floating>>,
}
Expand description

The GPIO pins connected to the micro:bit’s LED display.

See also pin_constants for dealing with these pin numbers.

The pins for columns 1,2,3,7,8,9 are also presented on the edge connector.

Fields§

§pin4: PIN4<Input<Floating>>

The GPIO pin connected to LED matrix column 1

Also connected to edge connector strip 3

§pin5: PIN5<Input<Floating>>

The GPIO pin connected to LED matrix column 2

Also connected to edge connector strip 4

§pin6: PIN6<Input<Floating>>

The GPIO pin connected to LED matrix column 3

Also connected to edge connector strip 10

§pin7: PIN7<Input<Floating>>

The GPIO pin connected to LED matrix column 4

§pin8: PIN8<Input<Floating>>

The GPIO pin connected to LED matrix column 5

§pin9: PIN9<Input<Floating>>

The GPIO pin connected to LED matrix column 6

§pin10: PIN10<Input<Floating>>

The GPIO pin connected to LED matrix column 7

Also connected to edge connector strip 9

§pin11: PIN11<Input<Floating>>

The GPIO pin connected to LED matrix column 8

Also connected to edge connector strip 7

§pin12: PIN12<Input<Floating>>

The GPIO pin connected to LED matrix column 9

Also connected to edge connector strip 6

§pin13: PIN13<Input<Floating>>

The GPIO pin connected to LED matrix row 1

§pin14: PIN14<Input<Floating>>

The GPIO pin connected to LED matrix row 2

§pin15: PIN15<Input<Floating>>

The GPIO pin connected to LED matrix row 3

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.