This commit is contained in:
Tyrel Souza 2018-08-28 21:58:52 -04:00
parent 728160dadb
commit eb545e73a7

View File

@ -73,7 +73,7 @@ def get_stats(pages, books):
def draw(stats): def draw(stats):
colour = 'red' colour = 'red'
inkyphat.set_colour(colour) inkyphat.set_colour(colour)
inkyphat.set_border(inkyphat.RED) inkyphat.set_border(inkyphat.WHITE)
inkyphat.set_image("./background.png") inkyphat.set_image("./background.png")
draw_row('year', stats, 12) draw_row('year', stats, 12)
@ -90,7 +90,7 @@ def draw_row(row, stats, size):
count = year[row][0] count = year[row][0]
x,y = year[row][1] x,y = year[row][1]
w, h = font.getsize(count) w, h = font.getsize(count)
inkyphat.text((x, y), count, inkyphat.RED, font) inkyphat.text((x, y), count, inkyphat.WHITE, font)
if __name__ == "__main__": if __name__ == "__main__":
main() main()