waveshareteam / e-Paper

1.3k stars 584 forks source link

Partial Refresh leads to grey pixels on 1.54 inch V2 #333

Closed kilianweisl closed 5 months ago

kilianweisl commented 7 months ago

Hello!

I'm having problems with partial refresh. As the title says, every time I update the display partially, I'm getting grey pixel, where actually there should be white ones. I'm running this on a STM32. I'm running the same init and partial init commands as in this repo's example code. Driver code should be the same too.

If I run the actual example code on my Raspberry PI 4 with Python, everything works totally fine.

Without being able to go into too much detail of the setup, does anyone know, what can lead to these grey pixels?

Thanks in advance.

shhds commented 5 months ago

I use the example code for testing is all right, you use the latest example code to see

kilianweisl commented 5 months ago

In case anybody stumbles upon this: The problem was that the wrong bytes from the lookup table have not been transmitted correctly. Make sure that the correct bytes are sent for partial/full refresh.