robweber / omni-epd

An EPD (electronic paper display) class abstraction to simplify communications across multiple display types.
GNU General Public License v3.0
83 stars 19 forks source link

Inky BW inversion problem #64

Closed robweber closed 2 years ago

robweber commented 2 years ago

Seems that #61 introduced an issue with Inky displays in BW mode. Prior to that fix Inky models used black as the color mode instead of bw. This caused images in that mode to use palette based color filtering with a palette. By fixing the mode it now triggers the conditional to convert the image to using convert(mode=1). For some reason having the image in this mode causes the black and white pixels to be inverted when drawn to the display.

In hindsight this was working correctly, but only because the code block that should have been triggered was actually missed. Inky seems to respond correctly by having the image in P mode.