From 788ddcab98519c29a272aec444564a2c030e630c Mon Sep 17 00:00:00 2001 From: Caemor <11088935+caemor@users.noreply.github.com> Date: Wed, 27 Jan 2021 20:53:24 +0100 Subject: [PATCH] Apply #48 to QuickRefresh as well --- src/epd4in2/mod.rs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/epd4in2/mod.rs b/src/epd4in2/mod.rs index 098d085..636b254 100644 --- a/src/epd4in2/mod.rs +++ b/src/epd4in2/mod.rs @@ -450,14 +450,6 @@ where fn update_old_frame(&mut self, spi: &mut SPI, buffer: &[u8]) -> Result<(), SPI::Error> { self.wait_until_idle(); - // todo: Eval if you need these 3 res setting items. - self.send_resolution(spi)?; - self.interface - .cmd_with_data(spi, Command::VCM_DC_SETTING, &[0x12])?; - //VBDF 17|D7 VBDW 97 VBDB 57 VBDF F7 VBDW 77 VBDB 37 VBDR B7 - self.interface - .cmd_with_data(spi, Command::VCOM_AND_DATA_INTERVAL_SETTING, &[0x97])?; - self.interface .cmd(spi, Command::DATA_START_TRANSMISSION_1)?; @@ -490,14 +482,6 @@ where ) -> Result<(), SPI::Error> { self.wait_until_idle(); - // todo: Eval if you need these 3 res setting items. - self.send_resolution(spi)?; - self.interface - .cmd_with_data(spi, Command::VCM_DC_SETTING, &[0x12])?; - //VBDF 17|D7 VBDW 97 VBDB 57 VBDF F7 VBDW 77 VBDB 37 VBDR B7 - self.interface - .cmd_with_data(spi, Command::VCOM_AND_DATA_INTERVAL_SETTING, &[0x97])?; - if buffer.len() as u32 != width / 8 * height { //TODO: panic!! or sth like that //return Err("Wrong buffersize");