adafruit / Adafruit_CircuitPython_EPD

e paper driver for circuit python
MIT License
40 stars 19 forks source link

Unable to correctly drive 3-color display (InkyWHAT) #81

Open alanta opened 2 months ago

alanta commented 2 months ago

I'm trying to use my Pimorony InkyWHAT (black/yellow) with CircuitPython. I've created a driver for it based on the code from Pimoroni. The code is here: alanta/CircuitPython_InkyWhat

The driver mostly works but it seems that the display needs it's data in different format. Here's the expected output:

output-expected

This is the actual output:

output-no-invert

I've tried all combinations of color_bits_inverted and black_bits_inverted which gives different output but all incorrect.

The original Pimoroni driver sets the black plane to be 1 where the color != white, the color plane is 1 where the color is the accent color. Is there some way to get the same result?