Fix crate incompatibilities

This commit is contained in:
Felix Suchert 2023-05-29 14:48:19 +02:00
parent 426d5b4453
commit a82d03c7b2
Signed by: feliix42
GPG key ID: 24363525EA0E8A99
3 changed files with 273 additions and 470 deletions

735
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -9,9 +9,11 @@ authors = ["Felix Suchert <dev@felixsuchert.de>"]
[dependencies]
embedded-graphics = "0.8"
embedded-plots = "0.2"
embedded-plots = { git = "https://code.dummyco.de/feliix42/embedded-plots" }
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 = { path = "../ssd1675" }

View file

@ -109,7 +109,7 @@ where
// Plot the forecast
// TODO(feliix42): Annotate the plot better??
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))
.into_drawable(Point::new(100, 54), Point::new(206, 94))