pub struct Display { /* private fields */ }
Expand description
Array of all the LEDs in the 5x5 display on the board
Implementations
sourceimpl Display
impl Display
sourcepub fn new(
col1: PIN4<Output<PushPull>>,
col2: PIN5<Output<PushPull>>,
col3: PIN6<Output<PushPull>>,
col4: PIN7<Output<PushPull>>,
col5: PIN8<Output<PushPull>>,
col6: PIN9<Output<PushPull>>,
col7: PIN10<Output<PushPull>>,
col8: PIN11<Output<PushPull>>,
col9: PIN12<Output<PushPull>>,
row1: PIN13<Output<PushPull>>,
row2: PIN14<Output<PushPull>>,
row3: PIN15<Output<PushPull>>
) -> Self
pub fn new(
col1: PIN4<Output<PushPull>>,
col2: PIN5<Output<PushPull>>,
col3: PIN6<Output<PushPull>>,
col4: PIN7<Output<PushPull>>,
col5: PIN8<Output<PushPull>>,
col6: PIN9<Output<PushPull>>,
col7: PIN10<Output<PushPull>>,
col8: PIN11<Output<PushPull>>,
col9: PIN12<Output<PushPull>>,
row1: PIN13<Output<PushPull>>,
row2: PIN14<Output<PushPull>>,
row3: PIN15<Output<PushPull>>
) -> Self
Initializes all the user LEDs
sourcepub fn set_delay_ms(&mut self, delay_ms: u32)
pub fn set_delay_ms(&mut self, delay_ms: u32)
Set delay, time spent on each matrix row, in ms
sourcepub fn set_refresh_rate(&mut self, freq_hz: u32)
pub fn set_refresh_rate(&mut self, freq_hz: u32)
Set refresh rate, time for matrix scan
sourcepub fn display2matrix(led_display: [[u8; 5]; 5]) -> [[u8; 9]; 3]
pub fn display2matrix(led_display: [[u8; 5]; 5]) -> [[u8; 9]; 3]
Convert 5x5 display image to 3x9 matrix image
Auto Trait Implementations
impl RefUnwindSafe for Display
impl Send for Display
impl Sync for Display
impl Unpin for Display
impl UnwindSafe for Display
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more