mirror of
https://github.com/infinition/Bjorn.git
synced 2025-12-12 07:35:00 +00:00
Resolve EPD.init argument error for Waveshare v3
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user