patch/inkylauncher
ZodiusInfuser 2022-12-19 15:28:49 +00:00 zatwierdzone przez Phil Howard
rodzic 1c88dcca40
commit 4273e9743e
2 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -138,7 +138,7 @@ def draw():
# Title
graphics.text("Headlines from BBC News:", 10, 10, 320, 3)
graphics.set_pen(4)
graphics.text(feed[0]["title"], 10, 70, WIDTH - 150, 3 if graphics.measure_text(feed[0]["title"]) < 600 else 2)
graphics.text(feed[1]["title"], 130, 260, WIDTH - 140, 3 if graphics.measure_text(feed[1]["title"]) < 600 else 2)

Wyświetl plik

@ -7,8 +7,8 @@ graphics = None
rtc = machine.RTC()
time_string = None
words = ["it", "d", "is", "m", "about", "l", "half", "c", "quarter", "b", "to", "u", "past", "n", "one",
"two", "three", "four", "five", "six", "eleven", "ten", "nine", "eight", "seven", "rm", "twelve", "rt", "O'Clock", "q"]
words = ["it", "d", "is", "m", "about", "l", "half", "c", "quarter", "b", "to", "u", "past", "n", "one",
"two", "three", "four", "five", "six", "eleven", "ten", "nine", "eight", "seven", "rm", "twelve", "rt", "O'Clock", "q"]
def approx_time(hours, minutes):