Update for embedded-graphics 0.5.2

Macro-Traits
dbr 4 years ago
parent 7b4a7f0578
commit f96caeb419

@ -30,7 +30,7 @@ type_a_alternative_faster_lut = []
[dependencies.embedded-graphics]
optional = true
version = "0.4.3"
version = "0.5.2"
[dependencies.embedded-hal]
features = ["unproven"]

@ -25,9 +25,9 @@ impl Default for Display4in2 {
impl Drawing<Color> for Display4in2 {
fn draw<T>(&mut self, item_pixels: T)
where
T: Iterator<Item = Pixel<Color>>,
T: IntoIterator<Item = Pixel<Color>>,
{
self.draw_helper(WIDTH, HEIGHT, item_pixels);
self.draw_helper(WIDTH, HEIGHT, item_pixels.into_iter());
}
}

@ -122,9 +122,9 @@ impl<'a> VarDisplay<'a> {
impl<'a> Drawing<Color> for VarDisplay<'a> {
fn draw<T>(&mut self, item_pixels: T)
where
T: Iterator<Item = Pixel<Color>>,
T: IntoIterator<Item = Pixel<Color>>,
{
self.draw_helper(self.width, self.height, item_pixels);
self.draw_helper(self.width, self.height, item_pixels.into_iter());
}
}

Loading…
Cancel
Save