mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-03 22:06:43 +00:00
cleanup
This commit is contained in:
+2
-4
@@ -61,7 +61,7 @@ impl Drawing<Color> for DisplayEink42BlackWhite {
|
||||
where
|
||||
T: Iterator<Item = Pixel<Color>>
|
||||
{
|
||||
use epd4in2::constants::{DEFAULT_BACKGROUND_COLOR, WIDTH, HEIGHT};
|
||||
use epd4in2::constants::WIDTH;
|
||||
for Pixel(UnsignedCoord(x,y), color) in item_pixels {
|
||||
let (idx, bit) = match self.rotation {
|
||||
DisplayRotation::Rotate0 | DisplayRotation::Rotate180 => (
|
||||
@@ -96,9 +96,7 @@ mod tests {
|
||||
use super::*;
|
||||
use epd4in2;
|
||||
use embedded_graphics::coord::Coord;
|
||||
use embedded_graphics::fonts::Font6x8;
|
||||
use embedded_graphics::prelude::*;
|
||||
use embedded_graphics::primitives::{Circle, Line};
|
||||
use embedded_graphics::primitives::Line;
|
||||
|
||||
#[test]
|
||||
fn from_u8() {
|
||||
|
||||
Reference in New Issue
Block a user