Browse Source

cleanup

embedded-hal-1.0
Chris 7 years ago
parent
commit
dbdb8912a8
  1. 2
      Cargo.toml
  2. 1
      examples/embedded_linux_epd4in2/Cargo.toml
  3. 6
      src/drawing.rs

2
Cargo.toml

@ -30,8 +30,6 @@ epd4in2_fast_update = []
[dependencies]
embedded-graphics = "0.4.2"
#embedded-graphics = {git = "https://github.com/caemor/embedded-graphics", branch = "patch-1"}
[dependencies.embedded-hal]
features = ["unproven"]

1
examples/embedded_linux_epd4in2/Cargo.toml

@ -12,6 +12,5 @@ eink_waveshare_rs = { path = "../../", default-features = false, features = ["ep
linux-embedded-hal = "0.2.0"
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"] }

6
src/drawing.rs

@ -61,7 +61,7 @@ impl Drawing<Color> for DisplayEink42BlackWhite {
where
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 {
let (idx, bit) = match self.rotation {
DisplayRotation::Rotate0 | DisplayRotation::Rotate180 => (
@ -96,9 +96,7 @@ mod tests {
use super::*;
use epd4in2;
use embedded_graphics::coord::Coord;
use embedded_graphics::fonts::Font6x8;
use embedded_graphics::prelude::*;
use embedded_graphics::primitives::{Circle, Line};
use embedded_graphics::primitives::Line;
#[test]
fn from_u8() {

Loading…
Cancel
Save