diff --git a/deploy/templates/eink-show.service.j2 b/deploy/templates/eink-show.service.j2 index 6f11dff..d7a1f5b 100644 --- a/deploy/templates/eink-show.service.j2 +++ b/deploy/templates/eink-show.service.j2 @@ -5,7 +5,6 @@ Description=Show new photo onto the eink display Type=oneshot WorkingDirectory={{ code_dest }} -#EnvironmentFile={{ service_config_dir }}/restic.env ExecStart=python main.py diff --git a/image_show.py b/image_show.py index 5243616..e0ba3bb 100644 --- a/image_show.py +++ b/image_show.py @@ -1,6 +1,5 @@ from PIL import Image, ImageDraw -from waveshare_epaper import epd7in3f - +import epaper # BLACK = 0x000000 # 0000 BGR # WHITE = 0xffffff # 0001 # GREEN = 0x00ff00 # 0010 @@ -14,7 +13,7 @@ class ImageShowError(Exception): class ImageShow: - epd = epd7in3f.EPD() + epd = epaper.epaper("epd7in3f").EPD() def __init__(self) -> None: self.epd.init()