From 132cae0e4568a131593eb2292201698c4a1d7cb3 Mon Sep 17 00:00:00 2001 From: Denis Chaplygin Date: Wed, 8 Dec 2021 21:02:01 +0200 Subject: [PATCH] Inverted red channel for the partial update --- src/epd5in83b_v2/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/epd5in83b_v2/mod.rs b/src/epd5in83b_v2/mod.rs index 5664880..f7ad357 100644 --- a/src/epd5in83b_v2/mod.rs +++ b/src/epd5in83b_v2/mod.rs @@ -13,7 +13,7 @@ use embedded_hal::{ use crate::color::Color; use crate::interface::DisplayInterface; -use crate::prelude::{WaveshareDisplay, WaveshareThreeColorDisplay}; +use crate::prelude::{TriColor, WaveshareDisplay, WaveshareThreeColorDisplay}; use crate::traits::{InternalWiAdditions, RefreshLut}; pub(crate) mod command; @@ -232,7 +232,7 @@ where self.command(spi, Command::DataStartTransmission1)?; self.send_data(spi, buffer)?; - let color = self.color.get_byte_value(); // Only black channel partial updates are supported ATM + let color = TriColor::Black.get_byte_value(); //We need it black, so red channel will be rendered transparent self.command(spi, Command::DataStartTransmission2)?; self.interface .data_x_times(spi, color, width * height / 8)?;