From 3d7362fe562379ef8f295f8c4bc8a0d374316255 Mon Sep 17 00:00:00 2001 From: Sean Corrigan Date: Thu, 24 Dec 2020 14:16:54 -0500 Subject: [PATCH] push code to pi - testing --- display.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/display.py b/display.py index c110390..e97c569 100644 --- a/display.py +++ b/display.py @@ -14,15 +14,13 @@ def sendUpdate(message): # Drawing on the image image = Image.new('1', (epd2in13.EPD_HEIGHT, epd2in13.EPD_WIDTH), 255) # 255: clear the frame - image = image.rotate(180) - # angle = 45 # message = "testing 123 what is going\n on ahbfuasdfhkgasyudgfuasykgdf" draw = ImageDraw.Draw(image) - font15 = ImageFont.truetype('wqy-microhei.ttc', 20) draw.text((3, 3), '{}'.format(message), font = font15, fill = 0) + image = image.rotate(180) epd.display(epd.getbuffer(image)) if __name__ == "__main__":