Skip to content

Commit

Permalink
Color inversion required for 3bit pixels (6PLUS and 6PLUSV2)
Browse files Browse the repository at this point in the history
  • Loading branch information
turgu1 committed Oct 14, 2024
1 parent d24c69f commit 4034427
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/inkplate_screen/src/screen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ Screen::draw_rectangle(
SELECT(1bit);
}
else {
#if INKPLATE_6FLICK
#if INKPLATE_6PLUS | INKPLATE_6PLUSV2 | INKPLATE_6FLICK
color = color == Color::BLACK ? 0 : 7;
#endif
SELECT(3bit);
Expand Down Expand Up @@ -217,7 +217,7 @@ Screen::draw_round_rectangle(
SELECT(1bit);
}
else {
#if INKPLATE_6FLICK
#if INKPLATE_6PLUS | INKPLATE_6PLUSV2 | INKPLATE_6FLICK
color = color == Color::BLACK ? 0 : 7;
#endif
SELECT(3bit);
Expand Down Expand Up @@ -362,7 +362,7 @@ Screen::colorize_region(
}
}
else {
#if INKPLATE_6FLICK
#if INKPLATE_6PLUS | INKPLATE_6PLUSV2 | INKPLATE_6FLICK
color = color == Color::BLACK ? 0 : 7;
#endif
switch (orientation) {
Expand Down

0 comments on commit 4034427

Please sign in to comment.