robweber / omni-epd

An EPD (electronic paper display) class abstraction to simplify communications across multiple display types.
GNU General Public License v3.0
77 stars 16 forks source link

Fix epd5in83c in WaveshareTriColorDisplay #50

Closed dr-boehmerie closed 2 years ago

dr-boehmerie commented 3 years ago

Use driver name instead of device name in super().__init__()

robweber commented 2 years ago

Thanks for taking a look at this. Do you have one of these displays and can confirm this is working?

dr-boehmerie commented 2 years ago

Yes, I do have the black/yellow version of the 5in83 display, and just started to play around a bit with it and https://github.com/TomWhitwell/SlowMovie. Works for me, as well as just displaying an image using the basic example in omni-epd. Can't check if the fix breaks one of the other TriColor waveshare displays handled by the same class, though. But I would mark this one as supported in the README.md 👍

Will try out the 2in9 e-Paper module and the 2in7 e-Paper HAT later.

dr-boehmerie commented 2 years ago

The 2in9 e-Paper module (waveshare_epd.epd2in9) is a bw only display, the color mode info in the table seems wrong. It works out of the box, in bw mode, and the 2in7 e-Paper HAT (waveshare_epd.epd2in7) as well. I will update the table accordingly.

robweber commented 2 years ago

Thanks for testing these. The 2.9in must have just been a documentation error. I checked the places in the code where that driver is loaded and the normal 2.9 and 2.9v2 are only used as BW whereas the B and C models use the TriColor class.