[][src]Struct rmicrobit::gpio::I2cPins

pub struct I2cPins {
    pub pin0: PIN0<Input<Floating>>,
    pub pin30: PIN30<Input<Floating>>,
}

The GPIO pins used for the micro:bit's I2C interface.

These pins are connected to the internal I2C devices (the accelerometer and magnetometer), and are also presented on the edge connector.

Fields

pin0: PIN0<Input<Floating>>

The I2C SCL (clock) GPIO pin.

Also connected to edge connector strip 19.

pin30: PIN30<Input<Floating>>

The I2C SDA (data) GPIO pin.

Also connected to edge connector strip 20.

Auto Trait Implementations

impl Unpin for I2cPins

impl Send for I2cPins

impl Sync for I2cPins

Blanket Implementations

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

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> Into<U> for T where
    U: From<T>, 
[src]

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self