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)
import logging
from waveshare_epd import epd2in13b_V3
#from waveshare_epd import epd2in13b_V3
import epaper
import time
from PIL import Image,ImageDraw,ImageFont
import traceback
@ -66,7 +67,8 @@ def monitor(charge_point_power):
try:
logging.info("epd2in13b_V3 Demo")
epd = epd2in13b_V3.EPD()
#epd = epd2in13b_V3.EPD()
epd = epaper.epaper('epd2in13b_V3').EPD()
#logging.info("init and Clear")
#epd.init()
#epd.Clear()