Browse Source

Use the fixed embedded graphics lib once more

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

4
Cargo.toml

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

4
examples/embedded_linux_epd4in2/Cargo.toml

@ -11,7 +11,7 @@ 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.1" embedded-graphics = "0.4.2"
embedded-graphics = {git = "https://github.com/caemor/embedded-graphics", branch = "patch-1"} #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"] }

1
src/drawing.rs

@ -110,6 +110,7 @@ mod tests {
#[test] #[test]
fn from_u8_panic() { fn from_u8_panic() {
for val in 2..=u8::max_value() { for val in 2..=u8::max_value() {
extern crate std;
let result = std::panic::catch_unwind(|| Color::from(val)); let result = std::panic::catch_unwind(|| Color::from(val));
assert!(result.is_err()); assert!(result.is_err());
} }

Loading…
Cancel
Save