Rename trait and method and doc update

This commit is contained in:
Johan Kristell
2019-12-28 09:12:53 +01:00
parent b170e34028
commit 435cfd9a1c
3 changed files with 11 additions and 9 deletions
+3 -3
View File
@@ -6,7 +6,7 @@ use embedded_hal::{
};
use crate::interface::DisplayInterface;
use crate::traits::{InternalWiAdditions, RefreshLUT, WaveshareDisplay, WaveshareTwoColorDisplay};
use crate::traits::{InternalWiAdditions, RefreshLUT, WaveshareDisplay, WaveshareThreeColorDisplay};
//The Lookup Tables for the Display
mod constants;
@@ -83,7 +83,7 @@ where
}
}
impl<SPI, CS, BUSY, DC, RST> WaveshareTwoColorDisplay<SPI, CS, BUSY, DC, RST>
impl<SPI, CS, BUSY, DC, RST> WaveshareThreeColorDisplay<SPI, CS, BUSY, DC, RST>
for EPD1in54b<SPI, CS, BUSY, DC, RST>
where
SPI: Write<u8>,
@@ -92,7 +92,7 @@ where
DC: OutputPin,
RST: OutputPin,
{
fn update_both_planes(
fn update_color_frame(
&mut self,
spi: &mut SPI,
black: &[u8],