mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-03 22:06:43 +00:00
Update for embedded-graphics 0.5.2
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ type_a_alternative_faster_lut = []
|
|||||||
|
|
||||||
[dependencies.embedded-graphics]
|
[dependencies.embedded-graphics]
|
||||||
optional = true
|
optional = true
|
||||||
version = "0.4.3"
|
version = "0.5.2"
|
||||||
|
|
||||||
[dependencies.embedded-hal]
|
[dependencies.embedded-hal]
|
||||||
features = ["unproven"]
|
features = ["unproven"]
|
||||||
|
|||||||
@@ -25,9 +25,9 @@ impl Default for Display4in2 {
|
|||||||
impl Drawing<Color> for Display4in2 {
|
impl Drawing<Color> for Display4in2 {
|
||||||
fn draw<T>(&mut self, item_pixels: T)
|
fn draw<T>(&mut self, item_pixels: T)
|
||||||
where
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -122,9 +122,9 @@ impl<'a> VarDisplay<'a> {
|
|||||||
impl<'a> Drawing<Color> for VarDisplay<'a> {
|
impl<'a> Drawing<Color> for VarDisplay<'a> {
|
||||||
fn draw<T>(&mut self, item_pixels: T)
|
fn draw<T>(&mut self, item_pixels: T)
|
||||||
where
|
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());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user