diff options
author | Marvin Borner | 2019-12-28 18:27:09 +0100 |
---|---|---|
committer | Marvin Borner | 2019-12-28 18:27:09 +0100 |
commit | a3432b55221c0ac915a8014b59cc1677a64b645e (patch) | |
tree | b8ae824205a4a6a0e18693e46196211471cd6294 | |
parent | e7793464a7ad1b5384c88babe70215be5e971b1f (diff) |
-rw-r--r-- | epaper/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epaper/main.py b/epaper/main.py index 6d08177..8c4b877 100644 --- a/epaper/main.py +++ b/epaper/main.py @@ -13,9 +13,9 @@ font_size = 12 epd = epd2in13.EPD() epd.init(epd.FULL_UPDATE) -epd.Clear(0xFF) while 1: + epd.Clear(0xFF) image = Image.new('1', (epd2in13.EPD_HEIGHT, epd2in13.EPD_WIDTH), 255) # 255: clear the frame draw = ImageDraw.Draw(image) font = ImageFont.truetype('/usr/share/fonts/truetype/wqy/wqy-microhei.ttc', font_size) |