fix issue

This commit is contained in:
Sean Corrigan 2020-11-13 19:02:30 -05:00
parent 1cc8988612
commit d71621da40

View File

@ -8,6 +8,9 @@ import traceback
def sendUpdate(message): def sendUpdate(message):
draw = ImageDraw.Draw(image)
epd = epd2in13.EPD() epd = epd2in13.EPD()
epd.init(epd.FULL_UPDATE) epd.init(epd.FULL_UPDATE)
epd.Clear(0xFF) epd.Clear(0xFF)
@ -16,6 +19,7 @@ def sendUpdate(message):
image = Image.new('1', (epd2in13.EPD_HEIGHT, epd2in13.EPD_WIDTH), 255) # 255: clear the frame image = Image.new('1', (epd2in13.EPD_HEIGHT, epd2in13.EPD_WIDTH), 255) # 255: clear the frame
# message = "testing 123 what is going\n on ahbfuasdfhkgasyudgfuasykgdf" # message = "testing 123 what is going\n on ahbfuasdfhkgasyudgfuasykgdf"
draw = ImageDraw.Draw(image)
font15 = ImageFont.truetype('wqy-microhei.ttc', 20) font15 = ImageFont.truetype('wqy-microhei.ttc', 20)