Provide full QuickRefresh interface for 4in2 too
This display needs no special commands for displaying the new frame. But it will come in handy to support the full QuickRefresh trait when it comes to supporting different quick refresh capable displays from an application.main
parent
239691e8d3
commit
3edeac413d
|
|
@ -482,21 +482,24 @@ where
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This function is not needed for this display
|
/// This is wrapper around `display_frame` for using this device as a true
|
||||||
#[allow(unused)]
|
/// `QuickRefresh` device.
|
||||||
fn display_new_frame(&mut self, spi: &mut SPI, delay: &mut DELAY) -> Result<(), SPI::Error> {
|
fn display_new_frame(&mut self, spi: &mut SPI, delay: &mut DELAY) -> Result<(), SPI::Error> {
|
||||||
unimplemented!()
|
self.display_frame(spi, delay)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// This function is not needed for this display
|
/// This is wrapper around `update_new_frame` and `display_frame` for using
|
||||||
#[allow(unused)]
|
/// this device as a true `QuickRefresh` device.
|
||||||
|
///
|
||||||
|
/// To be used immediately after `update_old_frame`.
|
||||||
fn update_and_display_new_frame(
|
fn update_and_display_new_frame(
|
||||||
&mut self,
|
&mut self,
|
||||||
spi: &mut SPI,
|
spi: &mut SPI,
|
||||||
buffer: &[u8],
|
buffer: &[u8],
|
||||||
delay: &mut DELAY,
|
delay: &mut DELAY,
|
||||||
) -> Result<(), SPI::Error> {
|
) -> Result<(), SPI::Error> {
|
||||||
unimplemented!()
|
self.update_new_frame(spi, buffer, delay)?;
|
||||||
|
self.display_frame(spi, delay)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn update_partial_old_frame(
|
fn update_partial_old_frame(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue