Skip to content

Commit 2379b2e

Browse files
committed
Move font location higher in script as it's user customizable.
1 parent 87a9ced commit 2379b2e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Pi_Hole_Ad_Blocker/stats.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@
4141

4242
api_url = 'http://localhost/admin/api.php'
4343

44+
# Load nice silkscreen font
45+
font = ImageFont.truetype('/home/pi/slkscr.ttf', 8)
46+
4447
# Create the I2C interface.
4548
i2c = busio.I2C(SCL, SDA)
4649

@@ -79,9 +82,6 @@
7982
# for drawing shapes.
8083
x = 0
8184

82-
# Load nice silkscreen font
83-
font = ImageFont.truetype('/home/pi/slkscr.ttf', 8)
84-
8585
while True:
8686
# Draw a black filled box to clear the image.
8787
draw.rectangle((0, 0, width, height), outline=0, fill=0)

0 commit comments

Comments
 (0)