caemor / epd-waveshare

Drivers for various EPDs from Waveshare
ISC License
207 stars 128 forks source link

2.9" Display - Partial Quick Refresh Support #180

Open scottdalgliesh opened 6 months ago

scottdalgliesh commented 6 months ago

I was able to get partial quick refresh working for the 2.9" display module by copying the source code for the 2.13" display and making only a couple of minor tweaks and changes (update buffer dimensions and set DisplayUpdateControl1 during initialization). I also incorporated the updated LUT array proposed in #150 to improve full refresh rate.

I'm not sure if there are technical reasons why the code for the 2.9" module was originally structured differently, but from my (perhaps naive) testing with both displays, this appears to make the 2.9" display work similarly to the 2.13" display, which is a significant improvement. If this is of interest, please let me know and I can open a PR with these modifications.

blinry commented 5 months ago

As someone who owns a 2.9'' module, I'd be super interested! :) Is this for the v2?

scottdalgliesh commented 4 months ago

As someone who owns a 2.9'' module, I'd be super interested! :) Is this for the v2?

Yes, it is. I've been away for a bit, but will try to find time to upload the proof-of-concept changes to a public fork this weekend and add a link to it here. It looks like some recent changes have been made to this repo since my tests though, so I'll look at bringing it up to date before I upload it too.

scottdalgliesh commented 4 months ago

Link to the proof-of-concept Link

I'm not sure if there is a technical reason why the 2.9" module code is currently structured differently (so use at your own risk!), but this has worked for me. Hope it helps!