pub fn prepare_display(display: &mut Max7219, display_count: usize, intensity: u8)
Expand description

Convenient function that turns on the display, clears the display and sets the brightness to the highest possible value. It also sets the DecodeMode to NoDecode which is necessary for displaying content on the 8x8 matrix display. (Max7219 can also be used for 7 segment displays).

  • display - mutable reference to Max7219 display driver
  • display_count - count of displays connected to the MAX7219
  • intensity - brightness for the display; value between 0x00 and 0x0F