Resolve EPD.init argument error for Waveshare v3

This commit is contained in:
jbohack
2024-11-11 15:23:50 -05:00
parent fc6e0fb7cc
commit 49a9d7614a

View File

@@ -199,8 +199,11 @@ class EPD:
function : Initialize the e-Paper register
parameter:
'''
def init(self):
if (epdconfig.module_init() != 0):
def init(self, update=None):
if update is None:
update = self.FULL_UPDATE
if epdconfig.module_init() != 0:
return -1
# EPD hardware init start
self.reset()