Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions MagTag_NextBus/code.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def hh_mm(time_struct, twelve_hour=True):
FONT_LARGE = bitmap_font.load_font('/fonts/Impact-30.pcf')

# displayio group holds all the labels for the stops and predictions...
GROUP = displayio.Group(max_size=14)
GROUP = displayio.Group()
GROUP.append(fillrect(0, 0, DISPLAY.width, DISPLAY.height, 0xFFFFFF))
# Clear the screen ASAP before populating rest of group (erase any old
# prediction data)...
Expand All @@ -179,8 +179,7 @@ def hh_mm(time_struct, twelve_hour=True):
TEXT.anchor_point = (0.0, 1.0) # Bottom-left align description
GROUP.append(TEXT)
INITIAL = 'No predictions'
TEXT = Label(FONT_MEDIUM, text=INITIAL, color=0,
max_glyphs=max(len(INITIAL), MAX_PREDICTIONS * 7))
TEXT = Label(FONT_MEDIUM, text=INITIAL, color=0)
TEXT.anchor_point = (1.0, 1.0) # Bottom-right align predictions
GROUP.append(TEXT)

Expand Down
Empty file modified MagTag_NextBus/nextbus.py
100755 → 100644
Empty file.
Empty file modified MagTag_NextBus/nextbus_routefinder.py
100755 → 100644
Empty file.