avsaase / weact-studio-epd

Unofficial Rust driver for WeAct Studio e-paper displays
Apache License 2.0
6 stars 3 forks source link

Grayscale support for B/W panels? #12

Closed thedevleon closed 4 weeks ago

thedevleon commented 4 weeks ago

Any idea if the B/W ePaper screens could support grayscale?

I have a Waveshare 2.9 B/W v2 board here that only works with the WeActStudio290BlackWhiteDriver but not the actual epd_waveshare::epd2in13_v2 driver, which makes me think that maybe the WeAct 2.9 B/W and WaveShare 2.9 B/W share the same panel (at least in the screen I have here).

Waveshare says their V2 board supports grayscale, so does that mean the WeAct V2 might too if they're the same panel or controller IC?

pixelcolor::Gray4 could be used?

thedevleon commented 4 weeks ago

The FPC connector has "FPC-7519 rev.b" printed on it, which based on this seems to be a DEPG0290BNS800. AFAIK the WeAct 2.9 B/W is also a variant of DEPG0290.

avsaase commented 4 weeks ago

Good question! I have no idea to be honest. None of the product images of the WeActStudio displays that I've seen show use of grayscale. It's also not demonstrated in their examples, although that could also be explained by a lack of support in GxEPD2 driver that they use. If it is really the same driver IC and panel as the Waveshare display then it's perhaps it possible to get grayscale to work. Currently I have no need for this feature though and I'm busy with another project so I won't be able to investigate this further right now. If you figure it out I'm happy to take a PR.

thedevleon commented 4 weeks ago

After digging a bit more in the datasheets and in the code, it seems that (at least the 2.9 B/W one) does not support grayscale. I also have the 1.54 and 4.2 inch on order, maybe they are different. Will reopen the issue if I find something.