pub fn show_moving_text_in_loop(
    display: &mut Max7219,
    text: &str,
    display_count: usize,
    ms_sleep: u64,
    gap_width: Option<usize>
)
Expand description

Shows a moving text in loop. After each iteration all bits are shifted one col to the left. Make sure to call prepare_display() first!

  • display - mutable reference to Max7219 display driver
  • text - the text to display
  • display_count - count of displays connected to the MAX7219
  • ms_sleep - timeout after each iteration
  • gap_width - (optional) set’s the maximum width/count of empty cols between characters. 0 to deactivate. Downside is that spaces will be removed.