mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-03 22:06:43 +00:00
Add documentation
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
//! A simple Driver for the Waveshare 1.54" (B) E-Ink Display via SPI
|
||||
|
||||
use embedded_hal::{
|
||||
blocking::{delay::*, spi::Write},
|
||||
digital::*,
|
||||
|
||||
@@ -52,6 +52,8 @@ where
|
||||
) -> Result<(), SPI::Error>;
|
||||
}
|
||||
|
||||
|
||||
/// Functions to interact with two color panels
|
||||
pub trait WaveshareTwoColorDisplay<SPI, CS, BUSY, DC, RST>:
|
||||
WaveshareDisplay<SPI, CS, BUSY, DC, RST>
|
||||
where
|
||||
@@ -61,6 +63,7 @@ where
|
||||
DC: OutputPin,
|
||||
RST: OutputPin,
|
||||
{
|
||||
/// Update both color planes
|
||||
fn update_both_planes(
|
||||
&mut self,
|
||||
spi: &mut SPI,
|
||||
|
||||
Reference in New Issue
Block a user