kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Adjusted error message layout and wording
rodzic
97f2232e07
commit
e0d578bd07
|
@ -117,9 +117,10 @@ def draw():
|
|||
graphics.text("Participants: " + str(text[2]), 400, HEIGHT - 45, WIDTH - 20, 2)
|
||||
else:
|
||||
graphics.set_pen(4)
|
||||
graphics.rectangle(0, 175, 640, 25)
|
||||
graphics.rectangle(0, (HEIGHT // 2) - 20, WIDTH, 40)
|
||||
graphics.set_pen(1)
|
||||
graphics.text("Unable to get data! Check your network settings in secrets.py", 5, 180, 600, 2)
|
||||
graphics.text("Unable to get activity data!", 5, (HEIGHT // 2) - 15, WIDTH, 2)
|
||||
graphics.text("Check your network settings in secrets.py", 5, (HEIGHT // 2) + 2, WIDTH, 2)
|
||||
|
||||
graphics.update()
|
||||
|
||||
|
|
|
@ -83,9 +83,10 @@ def draw():
|
|||
jpeg.decode()
|
||||
except OSError:
|
||||
graphics.set_pen(4)
|
||||
graphics.rectangle(0, HEIGHT // 2, WIDTH, 25)
|
||||
graphics.rectangle(0, (HEIGHT // 2) - 20, WIDTH, 40)
|
||||
graphics.set_pen(1)
|
||||
graphics.text("Unable to display image! Check your network settings in secrets.py", 5, (HEIGHT // 2) + 5, WIDTH, 2)
|
||||
graphics.text("Unable to display image!", 5, (HEIGHT // 2) - 15, WIDTH, 2)
|
||||
graphics.text("Check your network settings in secrets.py", 5, (HEIGHT // 2) + 2, WIDTH, 2)
|
||||
|
||||
graphics.set_pen(0)
|
||||
graphics.rectangle(0, HEIGHT - 25, WIDTH, 25)
|
||||
|
|
|
@ -157,8 +157,9 @@ def draw():
|
|||
|
||||
else:
|
||||
graphics.set_pen(4)
|
||||
graphics.rectangle(0, HEIGHT // 2, WIDTH, 25)
|
||||
graphics.rectangle(0, (HEIGHT // 2) - 20, WIDTH, 40)
|
||||
graphics.set_pen(1)
|
||||
graphics.text("Unable to display news! Check your network settings in secrets.py", 5, (HEIGHT // 2) + 5, WIDTH, 2)
|
||||
graphics.text("Unable to display news feed!", 5, (HEIGHT // 2) - 15, WIDTH, 2)
|
||||
graphics.text("Check your network settings in secrets.py", 5, (HEIGHT // 2) + 2, WIDTH, 2)
|
||||
|
||||
graphics.update()
|
||||
|
|
|
@ -78,8 +78,9 @@ def draw():
|
|||
jpeg.decode()
|
||||
except OSError:
|
||||
graphics.set_pen(4)
|
||||
graphics.rectangle(0, 170, WIDTH, 25)
|
||||
graphics.rectangle(0, (HEIGHT // 2) - 20, WIDTH, 40)
|
||||
graphics.set_pen(1)
|
||||
graphics.text("Unable to display image! Check your network settings in secrets.py", 5, 175, 600, 2)
|
||||
graphics.text("Unable to display random joke!", 5, (HEIGHT // 2) - 15, WIDTH, 2)
|
||||
graphics.text("Check your network settings in secrets.py", 5, (HEIGHT // 2) + 2, WIDTH, 2)
|
||||
|
||||
graphics.update()
|
||||
|
|
Ładowanie…
Reference in New Issue