yes.
This commit is contained in:
parent
5080d53dda
commit
996b9feada
1 changed files with 1 additions and 1 deletions
2
main.py
2
main.py
|
@ -220,11 +220,11 @@ def main():
|
||||||
|
|
||||||
def drawClock():
|
def drawClock():
|
||||||
while True:
|
while True:
|
||||||
time.sleep(20)
|
|
||||||
canvas = Image.new('RGB', (128,64), color = 'black')
|
canvas = Image.new('RGB', (128,64), color = 'black')
|
||||||
clock_text = ImageDraw.Draw(canvas)
|
clock_text = ImageDraw.Draw(canvas)
|
||||||
clock_text.text((0,0), datetime.now().strftime("%H:%M"), font = clock_font, align = "center")
|
clock_text.text((0,0), datetime.now().strftime("%H:%M"), font = clock_font, align = "center")
|
||||||
showImage(canvas, 32, 0)
|
showImage(canvas, 32, 0)
|
||||||
|
time.sleep(20)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue