Delete the web console log file.
(self)
| 1332 | logger.info(f"EPD {epd_type} initialized via fallback with size: {self.width}x{self.height}") |
| 1333 | return |
| 1334 | except Exception as e2: |
| 1335 | logger.error(f"Fallback auto-detection also failed: {e2}") |
| 1336 | logger.warning("Continuing without EPD display support") |
| 1337 | self.epd_helper = None |
| 1338 | fallback_profile = DISPLAY_PROFILES.get(DEFAULT_EPD_TYPE, {"ref_width": 122, "ref_height": 250, "default_flip": False}) |
| 1339 | epd_type = self.config.get('epd_type') or DEFAULT_EPD_TYPE |
| 1340 | profile = DISPLAY_PROFILES.get(epd_type, fallback_profile) or fallback_profile |
| 1341 | self.width = self.config.get('ref_width', profile['ref_width']) |
| 1342 | self.height = self.config.get('ref_height', profile['ref_height']) |
| 1343 | self.screen_reversed = normalize_rotation(self.config.get('screen_reversed', 0)) |
| 1344 | self.web_screen_reversed = 0 |
| 1345 | |
| 1346 | # NOTE: Test image code below was used to verify EPD hardware. |
| 1347 | # Commented out to allow normal Ragnar display to show. |
| 1348 | # Uncomment if you need to test the display again. |
| 1349 | # from PIL import ImageDraw |
| 1350 | # test_image = Image.new('1', (self.width, self.height), 255) |
| 1351 | # draw = ImageDraw.Draw(test_image) |
no test coverage detected