cleanup
parent
08457e503d
commit
dbdb8912a8
|
|
@ -30,8 +30,6 @@ epd4in2_fast_update = []
|
||||||
[dependencies]
|
[dependencies]
|
||||||
|
|
||||||
embedded-graphics = "0.4.2"
|
embedded-graphics = "0.4.2"
|
||||||
#embedded-graphics = {git = "https://github.com/caemor/embedded-graphics", branch = "patch-1"}
|
|
||||||
|
|
||||||
|
|
||||||
[dependencies.embedded-hal]
|
[dependencies.embedded-hal]
|
||||||
features = ["unproven"]
|
features = ["unproven"]
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,5 @@ eink_waveshare_rs = { path = "../../", default-features = false, features = ["ep
|
||||||
linux-embedded-hal = "0.2.0"
|
linux-embedded-hal = "0.2.0"
|
||||||
|
|
||||||
embedded-graphics = "0.4.2"
|
embedded-graphics = "0.4.2"
|
||||||
#embedded-graphics = {git = "https://github.com/caemor/embedded-graphics", branch = "patch-1"}
|
|
||||||
|
|
||||||
embedded-hal = { version = "0.2.1", features = ["unproven"] }
|
embedded-hal = { version = "0.2.1", features = ["unproven"] }
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,7 @@ impl Drawing<Color> for DisplayEink42BlackWhite {
|
||||||
where
|
where
|
||||||
T: Iterator<Item = Pixel<Color>>
|
T: Iterator<Item = Pixel<Color>>
|
||||||
{
|
{
|
||||||
use epd4in2::constants::{DEFAULT_BACKGROUND_COLOR, WIDTH, HEIGHT};
|
use epd4in2::constants::WIDTH;
|
||||||
for Pixel(UnsignedCoord(x,y), color) in item_pixels {
|
for Pixel(UnsignedCoord(x,y), color) in item_pixels {
|
||||||
let (idx, bit) = match self.rotation {
|
let (idx, bit) = match self.rotation {
|
||||||
DisplayRotation::Rotate0 | DisplayRotation::Rotate180 => (
|
DisplayRotation::Rotate0 | DisplayRotation::Rotate180 => (
|
||||||
|
|
@ -96,9 +96,7 @@ mod tests {
|
||||||
use super::*;
|
use super::*;
|
||||||
use epd4in2;
|
use epd4in2;
|
||||||
use embedded_graphics::coord::Coord;
|
use embedded_graphics::coord::Coord;
|
||||||
use embedded_graphics::fonts::Font6x8;
|
use embedded_graphics::primitives::Line;
|
||||||
use embedded_graphics::prelude::*;
|
|
||||||
use embedded_graphics::primitives::{Circle, Line};
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn from_u8() {
|
fn from_u8() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue