pub fn flush(&mut self) -> Result<(), DisplayError> {
        self.send_command(Command::ColumnAddress)?;
        self.send_command(Command::RowAddress)?;
        self.send_command(Command::DisplayStartLine)?;
        self.send_command(Command::WriteRam)?;

        // Number of bytes 128*128*2;
        let multiplier = 128 * 8 * 2;
        for i in 0..16 {
            self.display
                .send_data(U8(&self.buffer[i * multiplier..(i + 1) * multiplier]));
        }
        self.display.send_data(U8(&self.buffer))
    }
/// Flushes the display, and makes the output visible on the screen.
Flushes the display, and makes the output visible on the screen.
Flushes the display and makes the output visible on the screen .
pub fn flush(&mut self) -> Result<(), DisplayError> {
        self.send_command(Command::ColumnAddress)?;
        self.send_command(Command::RowAddress)?;
        self.send_command(Command::DisplayStartLine)?;
        self.send_command(Command::WriteRam)?;
        // Number of bytes 128*128*2;
        let multiplier = 128 * 8 * 2;
        for i in 0..16 {
            self.display
                .send_data(U8(&self.buffer[i * multiplier..(i + 1) * multiplier]));
        }
        self.display.send_data(U8(&self.buffer))
    }
pub fn flush ( & mut self ) -> Result < ( ) , DisplayError > { self . send_command ( Command :: ColumnAddress ) ? ; self . send_command ( Command :: RowAddress ) ? ; self . send_command ( Command :: DisplayStartLine ) ? ; self . send_command ( Command :: WriteRam ) ? ; // Number of bytes 128*128*2; let multiplier = 128 * 8 * 2 ; for i in 0 .. 16 { self . display . send_data ( U8 ( & self . buffer [ i * multiplier .. ( i + 1 ) * multiplier ] ) ) ; } self . display . send_data ( U8 ( & self . buffer ) ) }
Flushes the display, and makes the output visible on the screen.
Flushes the display and makes the output visible on the screen .
&mut self