Skip to content

Commit ac6d150

Browse files
committed
label fix for weekly, as well as 16-bit .bmps
1 parent 5bbc369 commit ac6d150

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed
Binary file not shown.
-75 KB
Binary file not shown.

PyPortal_WeeklyCountdown/weeklycountdown.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import board
88
from adafruit_pyportal import PyPortal
99
from adafruit_bitmap_font import bitmap_font
10-
from adafruit_display_text.text_area import TextArea
10+
from adafruit_display_text.label import Label
1111

1212
# The time of the thing!
1313
EVENT_WEEKDAY = 2 # monday = 0 .. sunday = 6
@@ -33,14 +33,14 @@
3333
big_font = bitmap_font.load_font(cwd+"/fonts/Helvetica-Bold-36.bdf")
3434
big_font.load_glyphs(b'0123456789') # pre-load glyphs for fast printing
3535

36-
days_position = (30, 180)
37-
hours_position = (110, 180)
38-
minutes_position = (220, 180)
36+
days_position = (25, 212)
37+
hours_position = (110, 212)
38+
minutes_position = (220, 212)
3939
text_color = 0x000000
4040

4141
text_areas = []
4242
for pos in (days_position, hours_position, minutes_position):
43-
textarea = TextArea(big_font, text=' ')
43+
textarea = Label(big_font, text=' ')
4444
textarea.x = pos[0]
4545
textarea.y = pos[1]
4646
textarea.color = text_color

0 commit comments

Comments
 (0)