Closed sergarcia closed 4 years ago
Ah, that's actually a little leftover from shuffling the code around - https://github.com/joukos/PaperTTY/blob/master/papertty/drivers/drivers_4in2.py#L72 should be super(WavesharePartial, self).__init__(...
instead (wish we had some tests...). Thanks for pointing it out.
I pushed a fixed version (0.1.6) to PyPi just now. If you can test and verify it works for you now that'd be great.
Awesome, that fixed it. I wonder how one would go about creating tests for a project like this involving hardware devices.
Good to hear! I'll close this then.
Even without the hardware, most of the code could be tested automatically and bugs such as this would've been immediately found. One way to test the drivers too would be to check for example if the right sequences of bytes are written to SPI and whether the drawing commands produce proper results in a frame buffer, etc., but ultimately it of course needs someone to try it out with the actual hardware too.
I have the 4.2 Waveshare display and I can run their python demo code fine. For papertty I have installed in a virtualenv as indicated in the readme. When I try the following command (from within the virtualenv)
papertty --driver EPD4in2 image --image test-img.bmp
, both as root or regular user, I get the following error:Other attempts to run papertty produce similar errors.