v.0.3.3 font 16x16 optimized

This commit is contained in:
tiijay
2025-10-24 12:31:20 +02:00
parent fcc23a2ff5
commit d48087090c
2 changed files with 115 additions and 1902 deletions

File diff suppressed because it is too large Load Diff

22
main.py
View File

@@ -67,9 +67,7 @@ def weather_check(test_mode: bool = False):
ypos += delta
display.write_text(f'{str(w_resp.current.condition.text)}°C', 0, ypos, color=RAINBOW[1])
ypos += delta
display.write_text(
f'upd:{str(w_resp.current.last_updated)[-5:]}', 0, ypos, color=RAINBOW[2]
)
display.write_text(f'upd:{str(w_resp.current.last_updated)[-5:]}', 0, ypos, color=RAINBOW[2])
ypos += delta
display.write_text(f'cur:{str(w_resp.location.localtime)[-5:]}', 0, ypos, color=RAINBOW[3])
@@ -94,21 +92,21 @@ def font_test(font) -> None:
num_line = '0123456789'
row = 0
incr = height + 1
incr = height
display.write_text(num_line, 0, row)
row += incr
display.write_text(char_line_1.upper(), 0, row, YELLOW)
row += incr
display.write_text(char_line_2.upper(), 0, row, YELLOW)
row += incr
display.write_text(char_line_3.upper(), 0, row, YELLOW)
# row += incr
# display.write_text(char_line_2.upper(), 0, row, YELLOW)
# row += incr
# display.write_text(char_line_3.upper(), 0, row, YELLOW)
row += incr
display.write_text(char_line_1.lower(), 0, row, YELLOW)
# row += incr
# display.write_text(char_line_2.lower(), 0, row, YELLOW)
# row += incr
# display.write_text(char_line_3.lower(), 0, row, YELLOW)
row += incr
display.write_text(char_line_2.lower(), 0, row, YELLOW)
row += incr
display.write_text(char_line_3.lower(), 0, row, YELLOW)
row += incr * 2
display.write_text('!.,:;\'"-_+=*/\\()~°•', 0, row, ORANGE)