-fixed a doc test error in the interface file even though it's unknown why that was even recognized as a doc test
- fixed a few documentation links and warningsembedded-hal-1.0
parent
1f2c68d16d
commit
2c7807265c
|
|
@ -97,7 +97,7 @@ pub enum Command {
|
||||||
LOW_POWER_DETECTION = 0x51,
|
LOW_POWER_DETECTION = 0x51,
|
||||||
/// This command defines non-overlap period of Gate and Source.
|
/// This command defines non-overlap period of Gate and Source.
|
||||||
TCON_SETTING = 0x60,
|
TCON_SETTING = 0x60,
|
||||||
/// This command defines alternative resolution and this setting is of higher priority than the RES[1:0] in R00H (PSR).
|
/// This command defines alternative resolution and this setting is of higher priority than the RES\[1:0\] in R00H (PSR).
|
||||||
RESOLUTION_SETTING = 0x61,
|
RESOLUTION_SETTING = 0x61,
|
||||||
/// This command defines the Fist Active Gate and First Active Source of active channels.
|
/// This command defines the Fist Active Gate and First Active Source of active channels.
|
||||||
GSST_SETTING = 0x65,
|
GSST_SETTING = 0x65,
|
||||||
|
|
|
||||||
|
|
@ -105,7 +105,7 @@ 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 [EPD4in2::init()](EPD4in2::init()) isn't needed directly afterwards
|
/// This already initialises the device. That means [init()](init()) isn't needed directly afterwards
|
||||||
///
|
///
|
||||||
/// # Example
|
/// # Example
|
||||||
///
|
///
|
||||||
|
|
@ -136,6 +136,7 @@ where
|
||||||
Ok(epd)
|
Ok(epd)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// blablabla
|
||||||
fn init(&mut self) -> Result<(), E> {
|
fn init(&mut self) -> Result<(), E> {
|
||||||
// reset the device
|
// reset the device
|
||||||
self.reset();
|
self.reset();
|
||||||
|
|
|
||||||
|
|
@ -128,9 +128,10 @@ where
|
||||||
/// if the device is still busy
|
/// if the device is still busy
|
||||||
///
|
///
|
||||||
/// is_busy_low
|
/// is_busy_low
|
||||||
/// - TRUE for epd4in2, epd1in54, epd2in13, epd2in7, epd5in83, epd7in5
|
|
||||||
///
|
///
|
||||||
|
/// - TRUE for epd4in2, epd1in54, epd2in13, epd2in7, epd5in83, epd7in5
|
||||||
/// - FALSE for epd2in9
|
/// - FALSE for epd2in9
|
||||||
|
///
|
||||||
/// Most likely there was a mistake with the 2in9 busy connection
|
/// Most likely there was a mistake with the 2in9 busy connection
|
||||||
pub(crate) fn wait_until_idle(&mut self, is_busy_low: bool) {
|
pub(crate) fn wait_until_idle(&mut self, is_busy_low: bool) {
|
||||||
self.delay_ms(1);
|
self.delay_ms(1);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue