waveshare / IT8951

57 stars 36 forks source link

Partial refresh examples? #7

Open niawag opened 4 years ago

niawag commented 4 years ago

Hi and thanks for your code, it's really helpfull to start and build a new software to render images on the 7.8" e-ink screen!

I'd like to know if you can provide code to partially refresh the screen (only write a small image at a specific location)

Thanks for your help

braincore commented 4 years ago

Did you eventually find sample code for this?

niawag commented 4 years ago

Hi, I did not but I found an intersting fork that can help you: https://github.com/naluhh/IT8951 And maybe that one too: https://github.com/naluhh/4bpp-converter/

I didn't care that much about partial refresh for my app so I haven't spend much time on it.

pvginkel commented 2 months ago

I'm not sure if this answers the question, but I was looking for a way to update the screen without having it flash to black. If this is what you're looking for, you need to use EPD_IT8951_1bp_Refresh with the A2_Mode. 4bpp will always flash to black, 1bpp will not.

You do have to do a full refresh now and again. The Wiki goes into this.