mirror of
https://github.com/Anshorei/epd-waveshare.git
synced 2026-10-04 06:16:42 +00:00
test inverse color matching once more
This commit is contained in:
+4
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user