Browse Source

test inverse color matching once more

embedded-hal-1.0
Chris 7 years ago
parent
commit
dadc302945
  1. 6
      src/drawing.rs

6
src/drawing.rs

@ -98,10 +98,12 @@ impl Drawing<Color> for DisplayEink42BlackWhite {
match color {
Color::Black => {
self.buffer[idx] &= !bit;
//self.buffer[idx] &= !bit;
self.buffer[idx] |= bit;
}
Color::White => {
self.buffer[idx] |= bit;
//self.buffer[idx] |= bit;
self.buffer[idx] &= !bit;
}
}
}

Loading…
Cancel
Save