Browse Source

Forgotten parts of the previous commit for adding a graphics feature and using it

embedded-hal-1.0
Christoph Groß 7 years ago
parent
commit
9c08d8559e
  1. 3
      Cargo.toml
  2. 3
      examples/embedded_linux_epd1in54/Cargo.toml
  3. 5
      examples/embedded_linux_epd4in2/Cargo.toml

3
Cargo.toml

@ -18,8 +18,9 @@ travis-ci = { repository = "Caemor/eink-waveshare-rs" }
[features]
default = ["epd1in54", "epd2in9", "epd4in2"]
default = ["epd1in54", "epd2in9", "epd4in2", "graphics"]
graphics = []
epd1in54 = []
epd2in9 = []
epd4in2 = []

3
examples/embedded_linux_epd1in54/Cargo.toml

@ -6,7 +6,8 @@ authors = ["Christoph Groß <christoph-gross@mailbox.org>"]
[dependencies]
#eink_waveshare_rs = { git = "https://github.com/Caemor/eink-waveshare-rs"}
eink_waveshare_rs = { path = "../../"}
#eink_waveshare_rs = { path = "../../"}
eink_waveshare_rs = { path = "../../", default-features = false, features = ["epd1in54"]}
linux-embedded-hal = "0.2.0"

5
examples/embedded_linux_epd4in2/Cargo.toml

@ -5,8 +5,9 @@ authors = ["Christoph Groß <christoph-gross@mailbox.org>"]
[dependencies]
#eink_waveshare_rs = { git = "https://github.com/Caemor/eink-waveshare-rs"}
eink_waveshare_rs = { path = "../../"}
## The Only difference between this one and the one without default features sizewise seems to be a different .d-file Size (dependencies-file)
#eink_waveshare_rs = { path = "../../"}
eink_waveshare_rs = { path = "../../", default-features = false, features = ["epd4in2", "graphics"]}
linux-embedded-hal = "0.2.0"

Loading…
Cancel
Save