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 85 forks source link

Invert Display Colors? #217

Open ahnyerkeester opened 3 years ago

ahnyerkeester commented 3 years ago

I'm using Python and would like to have a black background with white letters. Is there a way to do that? I've been looking through examples and such and can't find it. Thanks in advance.

tvoverbeek commented 3 years ago

Prepare the image as a negative image (white on black) with PIL (Python Image Library)

ahnyerkeester commented 3 years ago

I'm displaying text, not images. Will that still work?

tvoverbeek commented 3 years ago

See the papirus-write example (https://github.com/PiSupply/PaPiRus/tree/master/bin/papirus-write) which calls the PapirusTextPos (https://github.com/PiSupply/PaPiRus/blob/master/papirus/textpos.py) for how to do this.

ahnyerkeester commented 3 years ago

Thanks @tvoverbeek, I'm fishing through textpos.py right now! Thank you for affirming that I'm barking up the correct tree.