kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Linting fix
rodzic
1c88dcca40
commit
4273e9743e
|
@ -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)
|
||||
|
|
|
@ -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):
|
||||
|
|
Ładowanie…
Reference in New Issue