(self)
| 42 | logger.error(f"Error loading EPD module {self.epd_type}: {e}") |
| 43 | raise |
| 44 | |
| 45 | def init_full_update(self): |
| 46 | try: |
| 47 | if hasattr(self.epd, 'FULL_UPDATE'): |
| 48 | self.epd.init(self.epd.FULL_UPDATE) |
| 49 | elif hasattr(self.epd, 'lut_full_update'): |
| 50 | self.epd.init(self.epd.lut_full_update) |
| 51 | else: |
| 52 | self.epd.init() |
| 53 | logger.info("EPD full update initialization complete.") |
| 54 | except Exception as e: |
| 55 | logger.error(f"Error initializing EPD for full update: {e}") |
| 56 | raise |
| 57 | |
| 58 | def init_partial_update(self): |
no test coverage detected