This commit is contained in:
Lukas Schulz 2020-12-20 21:36:39 +01:00
parent 5080d53dda
commit 996b9feada

View file

@ -220,11 +220,11 @@ def main():
def drawClock():
while True:
time.sleep(20)
canvas = Image.new('RGB', (128,64), color = 'black')
clock_text = ImageDraw.Draw(canvas)
clock_text.text((0,0), datetime.now().strftime("%H:%M"), font = clock_font, align = "center")
showImage(canvas, 32, 0)
time.sleep(20)