mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-03 22:06:43 +00:00
Addition to previous commit (examples and forgotten save)
This commit is contained in:
@@ -9,7 +9,7 @@ use eink_waveshare_rs::{
|
|||||||
EPD1in54,
|
EPD1in54,
|
||||||
//drawing::{Graphics},
|
//drawing::{Graphics},
|
||||||
color::Color,
|
color::Color,
|
||||||
WaveshareInterface,
|
WaveshareDisplay,
|
||||||
};
|
};
|
||||||
|
|
||||||
use lin_hal::spidev::{self, SpidevOptions};
|
use lin_hal::spidev::{self, SpidevOptions};
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ use eink_waveshare_rs::{
|
|||||||
EPD4in2,
|
EPD4in2,
|
||||||
drawing::{Graphics},
|
drawing::{Graphics},
|
||||||
color::Color,
|
color::Color,
|
||||||
WaveshareInterface,
|
WaveshareDisplay,
|
||||||
};
|
};
|
||||||
|
|
||||||
use lin_hal::spidev::{self, SpidevOptions};
|
use lin_hal::spidev::{self, SpidevOptions};
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ use eink_waveshare_rs::{
|
|||||||
SPI_MODE,
|
SPI_MODE,
|
||||||
//drawing::{Graphics},
|
//drawing::{Graphics},
|
||||||
color::Color,
|
color::Color,
|
||||||
WaveshareInterface,
|
WaveshareDisplay,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -6,8 +6,8 @@ use hal::{
|
|||||||
|
|
||||||
use color::Color;
|
use color::Color;
|
||||||
|
|
||||||
/// Interface for the physical connection between display and the controlling device
|
|
||||||
pub(crate) mod connection_interface;
|
|
||||||
|
|
||||||
|
|
||||||
/// All commands need to have this trait which gives the address of the command
|
/// All commands need to have this trait which gives the address of the command
|
||||||
@@ -48,7 +48,7 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
pub trait WaveshareInterface<SPI, CS, BUSY, DC, RST>
|
pub trait WaveshareDisplay<SPI, CS, BUSY, DC, RST>
|
||||||
where
|
where
|
||||||
SPI: Write<u8>,
|
SPI: Write<u8>,
|
||||||
CS: OutputPin,
|
CS: OutputPin,
|
||||||
|
|||||||
Reference in New Issue
Block a user