added fast partial update to embedded_linux example

This commit is contained in:
Chris
2018-05-26 20:11:19 +02:00
parent c9578109cf
commit d4abd54b56
2 changed files with 26 additions and 1 deletions
+3
View File
@@ -211,6 +211,9 @@ where
/// Transmit partial data to the SRAM of the EPD,
/// the final parameter dtm chooses between the 2
/// internal buffers
///
/// Normally it should be dtm2, so use false
///
/// BUFFER needs to be of size: w / 8 * l !
pub fn set_partial_window(&mut self, buffer: &[u8], x: u16, y: u16, w: u16, l: u16, is_dtm1: bool) -> Result<(), E> {
if buffer.len() as u16 != w / 8 * l {