Fix crate incompatibilities
This commit is contained in:
parent
426d5b4453
commit
a82d03c7b2
3 changed files with 273 additions and 470 deletions
735
Cargo.lock
generated
735
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -9,9 +9,11 @@ authors = ["Felix Suchert <dev@felixsuchert.de>"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
embedded-graphics = "0.8"
|
embedded-graphics = "0.8"
|
||||||
embedded-plots = "0.2"
|
embedded-plots = { git = "https://code.dummyco.de/feliix42/embedded-plots" }
|
||||||
tinybmp = "0.5"
|
tinybmp = "0.5"
|
||||||
profont = "0.6"
|
# profont = "0.6"
|
||||||
|
# FIXME(feliix42): Hotfix for embedded-graphics compatibility
|
||||||
|
profont = { git = "https://github.com/sambenko/profont", branch = "embedded-graphics-0.8.0-fixes" }
|
||||||
ssd1675 = { git = "https://github.com/Feliix42/ssd1675" }
|
ssd1675 = { git = "https://github.com/Feliix42/ssd1675" }
|
||||||
#ssd1675 = { path = "../ssd1675" }
|
#ssd1675 = { path = "../ssd1675" }
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,7 @@ where
|
||||||
// Plot the forecast
|
// Plot the forecast
|
||||||
// TODO(feliix42): Annotate the plot better??
|
// TODO(feliix42): Annotate the plot better??
|
||||||
let data_points = weather_data.forecast_plot_data();
|
let data_points = weather_data.forecast_plot_data();
|
||||||
let curve = Curve::from_data(&data_points);
|
let curve = [(Curve::from_data(&data_points), Color::Black)];
|
||||||
|
|
||||||
let plot = SinglePlot::new(&curve, Scale::RangeFraction(4), Scale::RangeFraction(2))
|
let plot = SinglePlot::new(&curve, Scale::RangeFraction(4), Scale::RangeFraction(2))
|
||||||
.into_drawable(Point::new(100, 54), Point::new(206, 94))
|
.into_drawable(Point::new(100, 54), Point::new(206, 94))
|
||||||
|
|
Loading…
Reference in a new issue