oprema / Waveshare-E-Ink

Enhanced Raspberry Pi E-Ink Display Driver in Python
MIT License
52 stars 6 forks source link

Waveshare 2.7B #1

Open phaethon opened 5 years ago

phaethon commented 5 years ago

Apparently, it does not work with other display sizes. Mine is 2.7B and it detects it as 2.9, and no output on the display. Waveshare standard demo works well.

szymon-kazmierczak commented 5 years ago

I'm guessing its because its not listed here:

https://github.com/oprema/Waveshare-E-Ink/blob/master/main.py#L9

And therefore the constructor for Epd is not set up properly

https://github.com/oprema/Waveshare-E-Ink/blob/master/main.py#L51

Might be worthwhile to have a look at the sample code from the standard demo and see if the device type is listed somewhere there.

For example, I am looking right now at adding support for the 2in7 HAT, and it looks like the python library for that is different!