PiSupply / PaPiRus

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

writing image to papirus #163

Closed TS22082 closed 6 years ago

TS22082 commented 6 years ago

When using the code from the Readme:

` from papirus import PapirusImage img = PapirusImage(rotation = 180)

img.write('/path/to/my/image.bmp') `

I keep getting the TypeError: integer argument expected, got float

Any ideas? I know the papirus works because I was playing around with text output for awhile without any problems.

tvoverbeek commented 6 years ago

This is with Python 3? Now fixed for Python 3 on github. See commit https://github.com/PiSupply/PaPiRus/commit/40a27224709ce9b79c4f8d886fa8f1dbf73cd0b0