pub fn write_default(&mut self) -> Result<(), FlashError> {
        self.erase_page()?;
        let mut config = [0u8; CONFIG_SIZE];
        Self::matrix_to_config(Matrix::new(), &mut config);

        self.write(CONFIG_ADD, &config[..])?;
        self.last_valid_index = 0;
        Ok(())
    }
/// Writes a default configuration to the start of the config page.
Writes a default configuration to the start of the config page.
Writes a default configuration to the start of the config page .
pub fn write_default(&mut self) -> Result<(), FlashError> {
        self.erase_page()?;
        let mut config = [0u8; CONFIG_SIZE];
        Self::matrix_to_config(Matrix::new(), &mut config);
        self.write(CONFIG_ADD, &config[..])?;
        self.last_valid_index = 0;
        Ok(())
    }
pub fn write_default ( & mut self ) -> Result < ( ) , FlashError > { self . erase_page ( ) ? ; let mut config = [ 0u8 ; CONFIG_SIZE ] ; Self :: matrix_to_config ( Matrix :: new ( ) , & mut config ) ; self . write ( CONFIG_ADD , & config [ .. ] ) ? ; self . last_valid_index = 0 ; Ok ( ( ) ) }
Writes a default configuration to the start of the config page.
Writes a default configuration to the start of the config page .
&mut self
&mut self