fixed loc of font

This commit is contained in:
Sean Corrigan 2020-11-13 16:59:08 -05:00
parent ac29dc57a7
commit 5be3707c0f

View File

@ -52,7 +52,7 @@ try:
print("Show time") print("Show time")
epd.init(epd.PART_UPDATE) epd.init(epd.PART_UPDATE)
epd.Clear(0xFF) epd.Clear(0xFF)
font24 = ImageFont.truetype('/usr/share/fonts/truetype/wqy/wqy-microhei.ttc', 24) font24 = ImageFont.truetype('wqy-microhei.ttc', 24)
time_image = Image.new('1', (epd2in13.EPD_HEIGHT, epd2in13.EPD_WIDTH), 255) time_image = Image.new('1', (epd2in13.EPD_HEIGHT, epd2in13.EPD_WIDTH), 255)
time_draw = ImageDraw.Draw(time_image) time_draw = ImageDraw.Draw(time_image)
while (True): while (True):