Compare commits
3 Commits
0ecf68a4e4
...
21d0363765
| Author | SHA1 | Date | |
|---|---|---|---|
| 21d0363765 | |||
| 1d4229f7c1 | |||
| 5e3dc45302 |
@ -58,7 +58,9 @@ class OLED(object):
|
||||
image = self.image
|
||||
|
||||
# Load default font.
|
||||
font = ImageFont.load_default()
|
||||
# font = ImageFont.load_default()
|
||||
font_path = "/usr/share/fonts/truetype/dejavu/DejaVuSans.ttf"
|
||||
font = ImageFont.truetype(font_path, size)
|
||||
|
||||
# Write two lines of text.
|
||||
draw.text((x, y), text, font=font, fill=255)
|
||||
|
||||
@ -1,2 +1,3 @@
|
||||
# Raspi-Home
|
||||
# Raspi-SmartHome
|
||||
|
||||
A Raspberry Pi-based smart home project built on Python.
|
||||
|
||||
Reference in New Issue
Block a user