fix error message
This commit is contained in:
parent
18d3f42cd3
commit
1cc8988612
12
display.py
12
display.py
@ -17,9 +17,11 @@ def sendUpdate(message):
|
|||||||
|
|
||||||
# message = "testing 123 what is going\n on ahbfuasdfhkgasyudgfuasykgdf"
|
# message = "testing 123 what is going\n on ahbfuasdfhkgasyudgfuasykgdf"
|
||||||
|
|
||||||
while True:
|
|
||||||
font15 = ImageFont.truetype('wqy-microhei.ttc', 20)
|
font15 = ImageFont.truetype('wqy-microhei.ttc', 20)
|
||||||
draw.text((3, 3), '{}'.format(message), font = font15, fill = 0)
|
draw.text((3, 3), '{}'.format(message), font = font15, fill = 0)
|
||||||
epd.display(epd.getbuffer(image))
|
epd.display(epd.getbuffer(image))
|
||||||
time.sleep(20)
|
time.sleep(20)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
sendUpdate('Please run this program via\na callable function\nin your own program')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user