update
This commit is contained in:
parent
2001874ecb
commit
0501d7ea7c
@ -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
|
||||
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user