Moin Experten,
ich hatte in der Vergangenheit bei einer Buster-Version das OLED- Display 1,3" am Laufen. Mit einer abgespeckten "LITE"- Variante gelingt mir das nicht.
Alles andere läuft prima.
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
Irgendwie hat OLED anscheinend Probleme, die gewünschten Fonts zu finden. Es kommt immer diese
Fehlermeldung, die mich ziemlich ratlos macht.
Traceback (most recent call last):
File "/home/pi/oledtest", line 20, in <module>
FreeSans12 = ImageFont.truetype('FreeSans.ttf', 12)
File "/home/pi/.local/lib/python3.9/site-packages/PIL/ImageFont.py", line 855, in truetype
return freetype(font)
File "/home/pi/.local/lib/python3.9/site-packages/PIL/ImageFont.py", line 852, in freetype
return FreeTypeFont(font, size, index, encoding, layout_engine)
File "/home/pi/.local/lib/python3.9/site-packages/PIL/ImageFont.py", line 211, in __init__
self.font = core.getfont(
OSError: cannot open resource
Für Tips wäre ich sehr dankbar.