pub fn blit_l1(&mut self, frame: &[[u8; 16]; 64]) -> Result<(),Box<error::Error>> {
    use commands::*;

    // Clear sequence utilizing graphics acceleration.
    const BLIT_PREAMBLE_SEQUENCE: &'static [u8] = &[
      // Set the column address range to 0x00...0x3F. Each pixel takes 4 bits.
      SETCOLADDR, 0x00, 0x3F,
      // Set the row address range to 0x00...0x3F. There are 64 rows.
      SETROWADDR, 0x00, 0x3F,
    ];

    // Write the blit preamble sequence to the display.
    self.write_sequence(DisplayMode::Command, BLIT_PREAMBLE_SEQUENCE)?;

    // Unpack each line of display data and send it over the transport in Data mode.
    let mut sequence = [0u8; 64];
    for line in frame.iter() {
      unpack_line_for_display(line, &mut sequence);
      self.write_sequence(DisplayMode::Data, &sequence)?;
    }

    Ok(())
  }
/// Send an entire bitmap frame to the display.
/// The input image must be a 1-bit bitmap image arranged as 64 rows of 128 pixels.
/// Pixels must be packed 8 per byte, with the most significant bit corresponding to
/// the first pixel in the group (i.e. `0b1234567`).
Send an entire bitmap frame to the display.
The input image must be a 1-bit bitmap image arranged as 64 rows of 128 pixels.
Pixels must be packed 8 per byte, with the most significant bit corresponding to
the first pixel in the group .
Send an entire bitmap frame to the display . The input image must be a 1 - bit bitmap image arranged as 64 rows of 128 pixels . Pixels must be packed 8 per byte with the most significant bit corresponding to the first pixel in the group .
pub fn blit_l1(&mut self, frame: &[[u8; 16]; 64]) -> Result<(),Box<error::Error>> {
    use commands::*;
    // Clear sequence utilizing graphics acceleration.
    const BLIT_PREAMBLE_SEQUENCE: &'static [u8] = &[
      // Set the column address range to 0x00...0x3F. Each pixel takes 4 bits.
      SETCOLADDR, 0x00, 0x3F,
      // Set the row address range to 0x00...0x3F. There are 64 rows.
      SETROWADDR, 0x00, 0x3F,
    ];
    // Write the blit preamble sequence to the display.
    self.write_sequence(DisplayMode::Command, BLIT_PREAMBLE_SEQUENCE)?;
    // Unpack each line of display data and send it over the transport in Data mode.
    let mut sequence = [0u8; 64];
    for line in frame.iter() {
      unpack_line_for_display(line, &mut sequence);
      self.write_sequence(DisplayMode::Data, &sequence)?;
    }
    Ok(())
  }
pub fn blit_l1 ( & mut self , frame : & [ [ u8 ; 16 ] ; 64 ] ) -> Result < ( ) , Box < error :: Error > > { use commands :: * ; // Clear sequence utilizing graphics acceleration. const BLIT_PREAMBLE_SEQUENCE : & ' static [ u8 ] = & [ // Set the column address range to 0x00...0x3F. Each pixel takes 4 bits. SETCOLADDR , 0x00 , 0x3F , // Set the row address range to 0x00...0x3F. There are 64 rows. SETROWADDR , 0x00 , 0x3F , ] ; // Write the blit preamble sequence to the display. self . write_sequence ( DisplayMode :: Command , BLIT_PREAMBLE_SEQUENCE ) ? ; // Unpack each line of display data and send it over the transport in Data mode. let mut sequence = [ 0u8 ; 64 ] ; for line in frame . iter ( ) { unpack_line_for_display ( line , & mut sequence ) ; self . write_sequence ( DisplayMode :: Data , & sequence ) ? ; } Ok ( ( ) ) }
Send an entire bitmap frame to the display.
Send an entire bitmap frame to the display .
&mut self
frame
&[[u8; 16]; 64]
&mut self
frame
&[[u8; 16]; 64]