pub struct LedMatrixDriver<'a, L: Pin, A: Alarm<'a>> { /* private fields */ }
Expand description
Holds the array of LEDs and implements a Driver
interface to
control them.
Implementations§
Source§impl<'a, L: Pin, A: Alarm<'a>> LedMatrixDriver<'a, L, A>
impl<'a, L: Pin, A: Alarm<'a>> LedMatrixDriver<'a, L, A>
pub fn new( cols: &'a [&'a L], rows: &'a [&'a L], buffer: &'a mut [u8], alarm: &'a A, col_activation: ActivationMode, row_activation: ActivationMode, refresh_rate: usize, ) -> Self
pub fn init(&self)
pub fn cols_len(&self) -> usize
pub fn rows_len(&self) -> usize
pub fn on(&self, col: usize, row: usize) -> Result<(), ErrorCode>
pub fn off(&self, col: usize, row: usize) -> Result<(), ErrorCode>
pub fn toggle(&self, col: usize, row: usize) -> Result<(), ErrorCode>
Trait Implementations§
Source§impl<'a, L: Pin, A: Alarm<'a>> AlarmClient for LedMatrixDriver<'a, L, A>
impl<'a, L: Pin, A: Alarm<'a>> AlarmClient for LedMatrixDriver<'a, L, A>
Auto Trait Implementations§
impl<'a, L, A> !Freeze for LedMatrixDriver<'a, L, A>
impl<'a, L, A> !RefUnwindSafe for LedMatrixDriver<'a, L, A>
impl<'a, L, A> Send for LedMatrixDriver<'a, L, A>
impl<'a, L, A> !Sync for LedMatrixDriver<'a, L, A>
impl<'a, L, A> Unpin for LedMatrixDriver<'a, L, A>
impl<'a, L, A> !UnwindSafe for LedMatrixDriver<'a, L, A>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more