PiSupply / PaPiRus

Resources for PaPiRus ePaper eInk displays
https://www.pi-supply.com/product/papirus-epaper-eink-screen-hat-for-raspberry-pi/
Other
347 stars 84 forks source link

Calling tobytes() instead of tostring() in EPD.py display() function #32

Closed doody closed 8 years ago

doody commented 8 years ago

Hi,

I found the following problem when I trying to use the display function

File "/usr/local/lib/python2.7/dist-packages/papirus/epd.py", line 139, in display f.write(image.tostring()) File "/usr/local/lib/python2.7/dist-packages/PIL/Image.py", line 699, in tostring "Please call tobytes() instead.") Exception: tostring() has been removed. Please call tobytes() instead.

Compare to the EPD.py from RePaper, should be change to tobyte() instead

Thanks, Doody

shawaj commented 8 years ago

Fixed with latest commit. Can you test and confirm?

doody commented 8 years ago

Yes, it works now 👍