Skip to content

Commit 3ae9de8

Browse files
authored
Merge pull request #1635 from lesamouraipourpre/bbq
CLUE BBQ: Update for CP7
2 parents a3c26f2 + 6a12a91 commit 3ae9de8

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

CLUE_BBQ/clue_bbq.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
from adafruit_bitmap_font import bitmap_font
1414

1515
clue.display.brightness = 1.0
16-
homescreen_screen = displayio.Group(max_size=3)
17-
temperatures_screen = displayio.Group(max_size=2)
16+
homescreen_screen = displayio.Group()
17+
temperatures_screen = displayio.Group()
1818

1919
# define custom colors
2020
GREEN = 0x00D929
@@ -44,7 +44,7 @@
4444

4545
title_font = bitmap_font.load_font("/font/GothamBlack-50.bdf")
4646
title_font.load_glyphs("BQLUE".encode("utf-8"))
47-
title_label = label.Label(title_font, text="BBQLUE", color=clue.ORANGE, max_glyphs=15)
47+
title_label = label.Label(title_font, text="BBQLUE", color=clue.ORANGE)
4848
title_label.x = 12
4949
title_label.y = 120
5050
homescreen_screen.append(title_label)
@@ -66,21 +66,19 @@
6666

6767
my_labels = {} # dictionary of configured my_labels
6868

69-
text_group = displayio.Group(max_size=8, scale=1)
69+
text_group = displayio.Group()
7070

7171
for label_config in my_labels_config:
7272
(name, text, color, x, y) = label_config # unpack a tuple into five var names
73-
templabel = label.Label(temp_font, text=text, color=color, max_glyphs=15)
73+
templabel = label.Label(temp_font, text=text, color=color)
7474
templabel.x = x
7575
templabel.y = y
7676
my_labels[name] = templabel
7777
text_group.append(templabel)
7878

7979
temperatures_screen.append(text_group)
8080

81-
temp_title_label = label.Label(
82-
title_font, text="BBQLUE", color=clue.ORANGE, max_glyphs=15
83-
)
81+
temp_title_label = label.Label(title_font, text="BBQLUE", color=clue.ORANGE)
8482
temp_title_label.x = 12
8583
temp_title_label.y = 30
8684
temperatures_screen.append(temp_title_label)

0 commit comments

Comments
 (0)