v.0.3.3 font 16x16 optimized
This commit is contained in:
File diff suppressed because it is too large
Load Diff
22
main.py
22
main.py
@@ -67,9 +67,7 @@ def weather_check(test_mode: bool = False):
|
|||||||
ypos += delta
|
ypos += delta
|
||||||
display.write_text(f'{str(w_resp.current.condition.text)}°C', 0, ypos, color=RAINBOW[1])
|
display.write_text(f'{str(w_resp.current.condition.text)}°C', 0, ypos, color=RAINBOW[1])
|
||||||
ypos += delta
|
ypos += delta
|
||||||
display.write_text(
|
display.write_text(f'upd:{str(w_resp.current.last_updated)[-5:]}', 0, ypos, color=RAINBOW[2])
|
||||||
f'upd:{str(w_resp.current.last_updated)[-5:]}', 0, ypos, color=RAINBOW[2]
|
|
||||||
)
|
|
||||||
ypos += delta
|
ypos += delta
|
||||||
display.write_text(f'cur:{str(w_resp.location.localtime)[-5:]}', 0, ypos, color=RAINBOW[3])
|
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'
|
num_line = '0123456789'
|
||||||
|
|
||||||
row = 0
|
row = 0
|
||||||
incr = height + 1
|
incr = height
|
||||||
display.write_text(num_line, 0, row)
|
display.write_text(num_line, 0, row)
|
||||||
row += incr
|
row += incr
|
||||||
display.write_text(char_line_1.upper(), 0, row, YELLOW)
|
display.write_text(char_line_1.upper(), 0, row, YELLOW)
|
||||||
row += incr
|
# row += incr
|
||||||
display.write_text(char_line_2.upper(), 0, row, YELLOW)
|
# display.write_text(char_line_2.upper(), 0, row, YELLOW)
|
||||||
row += incr
|
# row += incr
|
||||||
display.write_text(char_line_3.upper(), 0, row, YELLOW)
|
# display.write_text(char_line_3.upper(), 0, row, YELLOW)
|
||||||
row += incr
|
row += incr
|
||||||
display.write_text(char_line_1.lower(), 0, row, YELLOW)
|
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
|
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)
|
display.write_text('!.,:;\'"-_+=*/\\()~°•', 0, row, ORANGE)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user