Skip to content

Commit 09a9e23

Browse files
committed
Fix simple-program.py
1 parent 06d9e7f commit 09a9e23

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

simple-program.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,15 @@ def sighandler(signum, frame):
122122

123123
# Display custom text with solid background
124124
lcd_comm.DisplayText("Custom italic multiline text\nright-aligned", 5, 120,
125-
font="roboto/Roboto-Italic.ttf",
125+
font="res/fonts/roboto/Roboto-Italic.ttf",
126126
font_size=20,
127127
font_color=(0, 0, 255),
128128
background_color=(255, 255, 0),
129129
align='right')
130130

131131
# Display custom text with transparent background
132132
lcd_comm.DisplayText("Transparent bold text", 5, 180,
133-
font="geforce/GeForce-Bold.ttf",
133+
font="res/fonts/geforce/GeForce-Bold.ttf",
134134
font_size=30,
135135
font_color=(255, 255, 255),
136136
background_image=background)
@@ -140,7 +140,7 @@ def sighandler(signum, frame):
140140
while not stop:
141141
start = time.perf_counter()
142142
lcd_comm.DisplayText(str(datetime.now().time()), 160, 2,
143-
font="roboto/Roboto-Bold.ttf",
143+
font="res/fonts/roboto/Roboto-Bold.ttf",
144144
font_size=20,
145145
font_color=(255, 0, 0),
146146
background_image=background)
@@ -177,7 +177,7 @@ def sighandler(signum, frame):
177177
value=bar_value,
178178
bar_color=(255, 255, 0),
179179
text=f"{10 * int(bar_value / 10)}°C",
180-
font="geforce/GeForce-Bold.ttf",
180+
font="res/fonts/geforce/GeForce-Bold.ttf",
181181
font_size=20,
182182
font_color=(255, 255, 0),
183183
background_image=background)

0 commit comments

Comments
 (0)