Moved Colors into its own module
parent
a40cda8756
commit
e0cf10bf4e
|
|
@ -7,7 +7,8 @@ extern crate eink_waveshare_rs;
|
||||||
|
|
||||||
use eink_waveshare_rs::{
|
use eink_waveshare_rs::{
|
||||||
EPD1in54,
|
EPD1in54,
|
||||||
drawing::{Graphics, color::Color},
|
//drawing::{Graphics},
|
||||||
|
color::Color,
|
||||||
WaveshareInterface,
|
WaveshareInterface,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,8 @@ extern crate eink_waveshare_rs;
|
||||||
|
|
||||||
use eink_waveshare_rs::{
|
use eink_waveshare_rs::{
|
||||||
EPD4in2,
|
EPD4in2,
|
||||||
drawing::{Graphics, color::Color},
|
drawing::{Graphics},
|
||||||
|
color::Color,
|
||||||
WaveshareInterface,
|
WaveshareInterface,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,7 @@
|
||||||
pub mod font;
|
pub mod font;
|
||||||
use self::font::Font;
|
use self::font::Font;
|
||||||
|
|
||||||
pub mod color;
|
use color::Color;
|
||||||
use self::color::Color;
|
|
||||||
|
|
||||||
#[derive(Clone, Copy)]
|
#[derive(Clone, Copy)]
|
||||||
pub enum Displayorientation {
|
pub enum Displayorientation {
|
||||||
|
|
|
||||||
|
|
@ -31,9 +31,9 @@ use hal::{
|
||||||
|
|
||||||
use type_a::{command::Command, LUT_FULL_UPDATE, LUT_PARTIAL_UPDATE};
|
use type_a::{command::Command, LUT_FULL_UPDATE, LUT_PARTIAL_UPDATE};
|
||||||
|
|
||||||
use drawing::color::Color;
|
use color::Color;
|
||||||
|
|
||||||
use interface::*;
|
use interface::{WaveshareInterface};
|
||||||
|
|
||||||
use interface::connection_interface::ConnectionInterface;
|
use interface::connection_interface::ConnectionInterface;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ use hal::{
|
||||||
|
|
||||||
use type_a::{command::Command, LUT_FULL_UPDATE, LUT_PARTIAL_UPDATE};
|
use type_a::{command::Command, LUT_FULL_UPDATE, LUT_PARTIAL_UPDATE};
|
||||||
|
|
||||||
use drawing::color::Color;
|
use color::Color;
|
||||||
|
|
||||||
use interface::*;
|
use interface::*;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -57,7 +57,7 @@ use interface::{connection_interface::ConnectionInterface, WaveshareInterface, I
|
||||||
mod constants;
|
mod constants;
|
||||||
use self::constants::*;
|
use self::constants::*;
|
||||||
|
|
||||||
use drawing::color::Color;
|
use color::Color;
|
||||||
|
|
||||||
pub mod command;
|
pub mod command;
|
||||||
use self::command::Command;
|
use self::command::Command;
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ use hal::{
|
||||||
digital::*,
|
digital::*,
|
||||||
};
|
};
|
||||||
|
|
||||||
use drawing::color::Color;
|
use color::Color;
|
||||||
|
|
||||||
/// Interface for the physical connection between display and the controlling device
|
/// Interface for the physical connection between display and the controlling device
|
||||||
pub(crate) mod connection_interface;
|
pub(crate) mod connection_interface;
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,8 @@ pub mod drawing;
|
||||||
mod interface;
|
mod interface;
|
||||||
pub use interface::{WaveshareInterface};
|
pub use interface::{WaveshareInterface};
|
||||||
|
|
||||||
|
pub mod color;
|
||||||
|
|
||||||
#[cfg(feature = "epd4in2")]
|
#[cfg(feature = "epd4in2")]
|
||||||
mod epd4in2;
|
mod epd4in2;
|
||||||
#[cfg(feature = "epd4in2")]
|
#[cfg(feature = "epd4in2")]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue