Fix previous Delay Commit
Some stuff was forgotten in the previous commitembedded-hal-1.0
parent
38dc5126ee
commit
829a9e71eb
|
|
@ -94,7 +94,7 @@ where
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<SPI, CS, BUSY, DC, RST, Delay, E> WaveshareInterface<SPI, CS, BUSY, DC, RST, E>
|
impl<SPI, CS, BUSY, DC, RST, E> WaveshareInterface<SPI, CS, BUSY, DC, RST, E>
|
||||||
for EPD1in54<SPI, CS, BUSY, DC, RST>
|
for EPD1in54<SPI, CS, BUSY, DC, RST>
|
||||||
where
|
where
|
||||||
SPI: Write<u8, Error = E>,
|
SPI: Write<u8, Error = E>,
|
||||||
|
|
@ -102,7 +102,6 @@ where
|
||||||
BUSY: InputPin,
|
BUSY: InputPin,
|
||||||
DC: OutputPin,
|
DC: OutputPin,
|
||||||
RST: OutputPin,
|
RST: OutputPin,
|
||||||
Delay: DelayUs<u16> + DelayMs<u16>,
|
|
||||||
{
|
{
|
||||||
fn width(&self) -> u16 {
|
fn width(&self) -> u16 {
|
||||||
WIDTH
|
WIDTH
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,7 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<SPI, CS, BUSY, DC, RST, D, E> EPD2in9<SPI, CS, BUSY, DC, RST>
|
impl<SPI, CS, BUSY, DC, RST, E> EPD2in9<SPI, CS, BUSY, DC, RST>
|
||||||
where
|
where
|
||||||
SPI: Write<u8, Error = E>,
|
SPI: Write<u8, Error = E>,
|
||||||
CS: OutputPin,
|
CS: OutputPin,
|
||||||
|
|
|
||||||
|
|
@ -285,14 +285,13 @@ where
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<SPI, CS, BUSY, DC, RST, D, ERR> EPD4in2<SPI, CS, BUSY, DC, RST>
|
impl<SPI, CS, BUSY, DC, RST, ERR> EPD4in2<SPI, CS, BUSY, DC, RST>
|
||||||
where
|
where
|
||||||
SPI: Write<u8, Error = ERR>,
|
SPI: Write<u8, Error = ERR>,
|
||||||
CS: OutputPin,
|
CS: OutputPin,
|
||||||
BUSY: InputPin,
|
BUSY: InputPin,
|
||||||
DC: OutputPin,
|
DC: OutputPin,
|
||||||
RST: OutputPin,
|
RST: OutputPin,
|
||||||
D: DelayUs<u16> + DelayMs<u16>,
|
|
||||||
{
|
{
|
||||||
fn command(&mut self, command: Command) -> Result<(), ERR> {
|
fn command(&mut self, command: Command) -> Result<(), ERR> {
|
||||||
self.interface.cmd(command)
|
self.interface.cmd(command)
|
||||||
|
|
|
||||||
|
|
@ -61,8 +61,8 @@ where
|
||||||
/// Creates a new driver from a SPI peripheral, CS Pin, Busy InputPin, DC
|
/// Creates a new driver from a SPI peripheral, CS Pin, Busy InputPin, DC
|
||||||
///
|
///
|
||||||
/// This already initialises the device. That means [init()](WaveshareInterface::init()) isn't needed directly afterwards
|
/// This already initialises the device. That means [init()](WaveshareInterface::init()) isn't needed directly afterwards
|
||||||
fn new<DELAY: DelayUs<u8>>(
|
fn new<DELAY: DelayMs<u8>>(
|
||||||
spi: SPI, cs: CS, busy: BUSY, dc: DC, rst: RST, delay: DELAY,
|
spi: SPI, cs: CS, busy: BUSY, dc: DC, rst: RST, delay: &mut DELAY,
|
||||||
) -> Result<Self, ERR>
|
) -> Result<Self, ERR>
|
||||||
where
|
where
|
||||||
Self: Sized;
|
Self: Sized;
|
||||||
|
|
@ -75,7 +75,7 @@ where
|
||||||
/// and initialising which already contains the reset
|
/// and initialising which already contains the reset
|
||||||
fn sleep(&mut self) -> Result<(), ERR>;
|
fn sleep(&mut self) -> Result<(), ERR>;
|
||||||
|
|
||||||
fn wake_up(&mut self) -> Result<(), ERR>;
|
fn wake_up<DELAY: DelayMs<u8>>(&mut self, delay: &mut DELAY) -> Result<(), ERR>;
|
||||||
|
|
||||||
|
|
||||||
/// Sets the backgroundcolor for various commands like [clear_frame()](WaveshareInterface::clear_frame())
|
/// Sets the backgroundcolor for various commands like [clear_frame()](WaveshareInterface::clear_frame())
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue