This commit is contained in:
Remy Moll 2023-11-03 12:06:20 +01:00
parent 2001874ecb
commit 0501d7ea7c
2 changed files with 2 additions and 4 deletions

View File

@ -5,7 +5,6 @@ Description=Show new photo onto the eink display
Type=oneshot Type=oneshot
WorkingDirectory={{ code_dest }} WorkingDirectory={{ code_dest }}
#EnvironmentFile={{ service_config_dir }}/restic.env
ExecStart=python main.py ExecStart=python main.py

View File

@ -1,6 +1,5 @@
from PIL import Image, ImageDraw from PIL import Image, ImageDraw
from waveshare_epaper import epd7in3f import epaper
# BLACK = 0x000000 # 0000 BGR # BLACK = 0x000000 # 0000 BGR
# WHITE = 0xffffff # 0001 # WHITE = 0xffffff # 0001
# GREEN = 0x00ff00 # 0010 # GREEN = 0x00ff00 # 0010
@ -14,7 +13,7 @@ class ImageShowError(Exception):
class ImageShow: class ImageShow:
epd = epd7in3f.EPD() epd = epaper.epaper("epd7in3f").EPD()
def __init__(self) -> None: def __init__(self) -> None:
self.epd.init() self.epd.init()