-
-
Notifications
You must be signed in to change notification settings - Fork 0
inkyphat
Benedikt Kristinsson edited this page May 8, 2020
·
2 revisions
- inkyphat module reference
-
Getting started guide: uses the
inkylibrary and installs via curlbash
Uses monospace font
#!/usr/bin/env python3
from PIL import ImageFont
import inkyphat
if __name__ == "__main__":
inkyphat.set_colour("red")
font = inkyphat.ImageFont.truetype(inkyphat.fonts.PressStart2P, 8)
xy = (10, 10)
text = "woof woof"
fill = inkyphat.BLACK
inkyphat.text(xy, text, fill=fill, font=font)
inkyphat.show()