Skip to content

Commit 69bc0dd

Browse files
authoredJun 18, 2022
Update display_temperature.py
1 parent 474fb13 commit 69bc0dd

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed
 

‎displayio_labels/display_temperature.py

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,28 @@
99
splash = displayio.Group()
1010

1111
title_label = Label(
12-
text="My Title", font=terminalio.FONT, color=0xFFFFFF, scale=3,
13-
anchored_position=(oled.width // 2, 0), anchor_point=(0.5, 0),
12+
text="My Title",
13+
font=terminalio.FONT,
14+
scale=3,
15+
color=0xFFFFFF,
16+
anchored_position=(oled.width // 2, 0),
17+
anchor_point=(0.5, 0),
1418
)
1519
temp_label = Label(
16-
text="Temperature:", font=terminalio.FONT, color=0xFFFFFF, scale=2,
17-
anchored_position=(0, 70), anchor_point=(0, 0.5),
20+
text="Temperature:",
21+
font=terminalio.FONT,
22+
scale=2,
23+
color=0xFFFFFF,
24+
anchored_position=(0, 70),
25+
anchor_point=(0, 0.5),
1826
)
1927
temp_value = Label(
20-
text="0 C", font=terminalio.FONT, color=0xFFFFFF, scale=2,
21-
anchored_position=(oled.width, 70), anchor_point=(1, 0.5),
28+
text="0 C",
29+
font=terminalio.FONT,
30+
scale=2,
31+
color=0xFFFFFF,
32+
anchored_position=(oled.width, 70),
33+
anchor_point=(1, 0.5),
2234
)
2335

2436
splash.append(title_label)

0 commit comments

Comments
 (0)