This commit is contained in:
Lukas Schulz 2020-12-20 21:26:20 +01:00
parent 22170b1088
commit 95e0709e16

View file

@ -220,7 +220,7 @@ def main():
def drawClock(): def drawClock():
while True: while True:
sleep(0.4) time.sleep(0.4)
canvas = Image.new('RGB', (64,128), color = 'black') canvas = Image.new('RGB', (64,128), color = 'black')
clock_text = ImageDraw.Draw(canvas) clock_text = ImageDraw.Draw(canvas)
clock_text.text((20,0), datetime.now(), font = clock_font, align = center) clock_text.text((20,0), datetime.now(), font = clock_font, align = center)