test inverse color matching once more

embedded-hal-1.0
Chris 2018-10-18 22:52:54 +02:00
parent 1acdd8d107
commit dadc302945
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}
}
}