change to epaper lib

This commit is contained in:
robert 2024-02-01 07:43:04 +00:00
parent bf13bd234a
commit c52f420ff1

View File

@ -8,7 +8,8 @@
# sys.path.append(libdir) # sys.path.append(libdir)
import logging import logging
from waveshare_epd import epd2in13b_V3 #from waveshare_epd import epd2in13b_V3
import epaper
import time import time
from PIL import Image,ImageDraw,ImageFont from PIL import Image,ImageDraw,ImageFont
import traceback import traceback
@ -66,7 +67,8 @@ def monitor(charge_point_power):
try: try:
logging.info("epd2in13b_V3 Demo") logging.info("epd2in13b_V3 Demo")
epd = epd2in13b_V3.EPD() #epd = epd2in13b_V3.EPD()
epd = epaper.epaper('epd2in13b_V3').EPD()
#logging.info("init and Clear") #logging.info("init and Clear")
#epd.init() #epd.init()
#epd.Clear() #epd.Clear()