mcauser / micropython-waveshare-epaper

MicroPython drivers for Waveshare e-paper modules
MIT License
310 stars 79 forks source link

Writing a driver for GDEW029T5 (epaper2in9c?) #9

Open 3ch01c opened 4 years ago

3ch01c commented 4 years ago

I'd like to use this with Badgy rev 2C which I think requires a new version of the epaper2in9 driver. Does that sound right? If so, any tips on modifying it before I take this red pill?

mcauser commented 4 years ago

Have a look at the upstream repo: https://github.com/waveshare/e-Paper https://github.com/waveshare/e-Paper/blob/master/RaspberryPi%26JetsonNano/python/lib/waveshare_epd/epd2in9bc.py

The A, B and C drivers are usually pretty similar with slightly different inits

garanews commented 4 years ago

I am interested too, going to do some test.

3ch01c commented 4 years ago

Good luck. I ran out of time and had to fall back to the Arduino library. I assume epd2in9d.py is the reference driver. I started with a copy of the epaper2in9.py. I modified the lookup tables and init() function to reflect the reference driver. I think the last thing I tried was to get the SetFullReg and SetPartReg functionality implemented.

garanews commented 4 years ago

Hi @3ch01c , few days ago released https://github.com/sqfmi/badgy-python/blob/master/badgyRev2C.py Using this driver and same old image bw it works. I have some issue using a 4 graylevel image. Did you tested it with a 4 graylevel image, or can you provide me a sample image ? (maybe I am not creating image correctly)