[][src]Struct pygamer::pins::ButtonReader

pub struct ButtonReader {
    pub latch: Pb0<Output<PushPull>>,
    pub data_in: Pb30<Input<Floating>>,
    pub clock: Pb31<Output<PushPull>>,
    pub last: u8,
}

Button pins

Fields

latch: Pb0<Output<PushPull>>

Button Latch

data_in: Pb30<Input<Floating>>

Button Out

clock: Pb31<Output<PushPull>>

Button Clock

last: u8

Implementations

impl ButtonReader[src]

pub fn events(&mut self) -> ButtonIter

Important traits for ButtonIter

impl Iterator for ButtonIter type Item = Keys;
[src]

Returns a ButtonIter of button changes as Keys enums

Auto Trait Implementations

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.