caemor / epd-waveshare

Drivers for various EPDs from Waveshare and others
ISC License
228 stars 137 forks source link

Release new version #43

Closed marcelbuesing closed 4 years ago

marcelbuesing commented 4 years ago

I created a new project copied the epd4in2 example and ran into the following error:

help: trait impl with same name found
   --> /home/marcel/.cargo/registry/src/github.com-1ecc6299db9ec823/epd-waveshare-0.3.2/src/color.rs:57:1
    |
57  | impl PixelColor for Color {}
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    = note: perhaps two different versions of crate `embedded_graphics` are being used?
    = note: required by `embedded_graphics::style::text_style::TextStyleBuilder::<C, F>::new`
    = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)

Turned out master depends on a later version of the embedded-graphics crate.

thermometer is 📦 v0.1.0 via 🦀 v1.42.0 
❯ cargo tree -i -p embedded-graphics:0.6.1
embedded-graphics v0.6.1
└── thermometer v0.1.0 (/home/marcel/github/thermometer)

thermometer is 📦 v0.1.0 via 🦀 v1.42.0 
❯ cargo tree -i -p embedded-graphics:0.4.9
embedded-graphics v0.4.9
└── epd-waveshare v0.3.2
    └── thermometer v0.1.0 (/home/marcel/github/thermometer)

Temporary workaround is basically:

embedded-graphics = "0.6.1"
epd-waveshare = { git = "https://github.com/caemor/epd-waveshare.git", rev = "79c2524c1d0980cad6e5033e7fc529a3033da774"}
caemor commented 4 years ago

A new version is release on crates.io

caemor commented 4 years ago

Also since I saw your are also working on some kind of thermometer: I made my thermometer repo public which I currently use for 2 small epds + raspberry pis + bme680 + openweather. You might find the simulator part for quick prototyping of the layout useful: https://github.com/caemor/aer/