change to epd versiond
This commit is contained in:
parent
c95a1ea96a
commit
1287a8b39f
@ -8,7 +8,7 @@ if os.path.exists(libdir):
|
||||
sys.path.append(libdir)
|
||||
|
||||
import logging
|
||||
from waveshare_epd import epd2in13_V2
|
||||
from epd import epd2in13d
|
||||
import time
|
||||
from PIL import Image,ImageDraw,ImageFont
|
||||
import traceback
|
||||
@ -32,7 +32,7 @@ pw = "phio6yiR9ohs1veeghu4WaeGhaiRi8he4EiWasheev4faeku8tohdiuthah7zahP"
|
||||
client_id = "solarmonitor"
|
||||
|
||||
try:
|
||||
epd = epd2in13_V2.EPD()
|
||||
epd = epd2in13d.EPD()
|
||||
logging.debug("init and Clear")
|
||||
epd.init(epd.FULL_UPDATE)
|
||||
epd.Clear(0xFF)
|
||||
@ -44,7 +44,7 @@ except IOError as e:
|
||||
except KeyboardInterrupt:
|
||||
logging.info("ctrl + c:")
|
||||
epd.Clear(0xFF)
|
||||
epd2in13_V2.epdconfig.module_exit()
|
||||
epd2in13d.epdconfig.module_exit()
|
||||
exit()
|
||||
|
||||
def on_connect(client, userdata, flags, rc):
|
||||
|
Loading…
Reference in New Issue
Block a user