diff --git a/resources/waveshare_epd/epd2in13_V3.py b/resources/waveshare_epd/epd2in13_V3.py index d320c33..c19c771 100644 --- a/resources/waveshare_epd/epd2in13_V3.py +++ b/resources/waveshare_epd/epd2in13_V3.py @@ -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()