projects
/
EVA-2020-02-2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #51 from rbricheno/example-combined-add-delay
[EVA-2020-02-2.git]
/
examples
/
lcd.py
diff --git
a/examples/lcd.py
b/examples/lcd.py
index 7e50c94eb68c5a2f6788c5c0d9810100860a683e..10413b9193a103261202c65011b582f51c62b77a 100755
(executable)
--- a/
examples/lcd.py
+++ b/
examples/lcd.py
@@
-1,7
+1,8
@@
-#!/usr/bin/env python
+#!/usr/bin/env python
3
import ST7735
from PIL import Image, ImageDraw, ImageFont
import ST7735
from PIL import Image, ImageDraw, ImageFont
+from fonts.ttf import RobotoMedium as UserFont
import logging
logging.basicConfig(
import logging
logging.basicConfig(
@@
-38,7
+39,7
@@
draw = ImageDraw.Draw(img)
# Text settings.
font_size = 25
# Text settings.
font_size = 25
-font = ImageFont.truetype(
"fonts/Asap/Asap-Bold.ttf"
, font_size)
+font = ImageFont.truetype(
UserFont
, font_size)
text_colour = (255, 255, 255)
back_colour = (0, 170, 170)
text_colour = (255, 255, 255)
back_colour = (0, 170, 170)