Trait MatrixScanner

Source
pub trait MatrixScanner<const COLS: usize, const ROWS: usize, E = Infallible> {
    // Required methods
    fn is_boot_key_pressed(&mut self) -> bool;
    fn get(&mut self) -> Result<[[bool; COLS]; ROWS], E>;
}

Required Methods§

Source

fn is_boot_key_pressed(&mut self) -> bool

Check whether SW_1_1 is pressed.

Source

fn get(&mut self) -> Result<[[bool; COLS]; ROWS], E>

Implementors§

Source§

impl<C, R, const CS: usize, const RS: usize, D, E: Debug> MatrixScanner<CS, RS, E> for Matrix<C, R, CS, RS, D>
where C: InputPin<Error = E>, R: OutputPin<Error = E>, D: DelayNs,

Source§

impl<P, const CS: usize, const RS: usize> MatrixScanner<CS, RS> for DirectPinMatrix<P, CS, RS>
where P: InputPin<Error = Infallible>,