[][src]Struct pygamer::pins::Buttons

pub struct Buttons {
    pub latch: Pb0<Input<Floating>>,
    pub data_in: Pb30<Input<Floating>>,
    pub clock: Pb31<Input<Floating>>,
}

Button pins

Fields

latch: Pb0<Input<Floating>>

Button Latch

data_in: Pb30<Input<Floating>>

Button Out

clock: Pb31<Input<Floating>>

Button Clock

Implementations

impl Buttons[src]

pub fn init(self, port: &mut Port) -> ButtonReader[src]

Convenience for setting up the button latch pins Returns ButtonReader iterator which can be polled for Key events

Auto Trait Implementations

impl Send for Buttons

impl Sync for Buttons

impl Unpin for Buttons

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.