Closed toldcodger closed 1 year ago
Several Luma LCD examples throw up errors about upcoming deprecated Pillow commands.
This is probably related to fact you're using an older version of luma.core and luma.lcd. Try upgrading them, e.g.
pip3 install -U luma.lcd
Ah, you're right, the examples still need to updated for the latest Pillow, e.g. https://github.com/rm-hull/luma.examples/search?q=textsize
Updating to latest luma.lcd is the first step though.
Hi Thijs,
Thanks for the info. If we are just waiting for an update, and you don’t need to keep it open for your own purposes, please feel free to close this.
Thanks again, it’s good to know I’m not going crazy 😂😂😂
Regards
Dave
Sent from my iPad
On 29 Nov 2022, at 15:16, Thijs Triemstra @.***> wrote:
Ah nevermind, you're right, the examples still need to updated for the latest Pillow, e.g. https://github.com/rm-hull/luma.examples/search?q=textsize
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.
Hi, I am not a Python expert but I have tried to solve this myself (unsuccessfully) before contacting you. Several Luma LCD examples throw up errors about upcoming deprecated Pillow commands. The unaltered examples run successfully until I try to change the textsixe line as described below. Below is an example of one such error in font_awsome.py
I edited the script to work with an ST7735 and renamed the file to font_awesomeSPI.py to reflect this.
If I swap textsize for textbbox I get the error below:
If I swap textsize for textlength I get the error below:
any help would be gratefully appreciated
Regards
Dave