change name, strip code

This commit is contained in:
Sean Corrigan 2020-11-13 17:20:40 -05:00
parent 5508af378d
commit e6f177a399

View File

@ -7,7 +7,7 @@ from PIL import Image,ImageDraw,ImageFont
import traceback import traceback
def sendUpdate(): def sendUpdate(message):
epd = epd2in13.EPD() epd = epd2in13.EPD()
epd.init(epd.FULL_UPDATE) epd.init(epd.FULL_UPDATE)
epd.Clear(0xFF) epd.Clear(0xFF)
@ -15,7 +15,7 @@ def sendUpdate():
# Drawing on the image # Drawing on the image
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"
while True: while True:
font15 = ImageFont.truetype('wqy-microhei.ttc', 20) font15 = ImageFont.truetype('wqy-microhei.ttc', 20)