Skip to content

Commit 0cdb0dd

Browse files
authored
Merge pull request #1726 from lesamouraipourpre/ez-make-oven
PyPortal EZ Make Oven: Update for CP7
2 parents 6bd0bc0 + 0ec6100 commit 0cdb0dd

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

PyPortal_EZ_Make_Oven/code.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717
from adafruit_mcp9600 import MCP9600
1818

1919
TITLE = "EZ Make Oven Controller"
20-
VERSION = "1.3.1"
20+
VERSION = "1.3.2"
2121

2222
print(TITLE, "version ", VERSION)
2323
time.sleep(2)
2424

25-
display_group = displayio.Group(max_size=20)
25+
display_group = displayio.Group()
2626
board.DISPLAY.show(display_group)
2727

2828
PROFILE_SIZE = 2 # plot thickness
@@ -546,9 +546,7 @@ def format_time(seconds):
546546

547547
font3 = bitmap_font.load_font("/fonts/OpenSans-16.bdf")
548548

549-
label_reflow = label.Label(
550-
font1, text="", max_glyphs=10, color=0xFFFFFF, line_spacing=0
551-
)
549+
label_reflow = label.Label(font1, text="", color=0xFFFFFF, line_spacing=0)
552550
label_reflow.x = 0
553551
label_reflow.y = -20
554552
display_group.append(label_reflow)
@@ -560,7 +558,7 @@ def format_time(seconds):
560558
# version_label.x = 300
561559
# version_label.y = 40
562560
# display_group.append(version_label)
563-
message = label.Label(font2, text="Wait", max_glyphs=30)
561+
message = label.Label(font2, text="Wait")
564562
message.x = 100
565563
message.y = 40
566564
display_group.append(message)
@@ -584,15 +582,15 @@ def format_time(seconds):
584582
timer_label.x = 5
585583
timer_label.y = 120
586584
display_group.append(timer_label)
587-
timer_data = label.Label(font3, text=format_time(timediff), max_glyphs=10)
585+
timer_data = label.Label(font3, text=format_time(timediff))
588586
timer_data.x = 10
589587
timer_data.y = 140
590588
display_group.append(timer_data)
591589
temp_label = label.Label(font1, text="Temp(C):", color=0xAAAAAA)
592590
temp_label.x = 5
593591
temp_label.y = 160
594592
display_group.append(temp_label)
595-
temp_data = label.Label(font3, text="--", max_glyphs=10)
593+
temp_data = label.Label(font3, text="--")
596594
temp_data.x = 10
597595
temp_data.y = 180
598596
display_group.append(temp_data)

0 commit comments

Comments
 (0)