implement clear-display script

This commit is contained in:
Ace
2024-01-14 00:01:41 +01:00
parent 796a896c34
commit d231716c0b
3 changed files with 15 additions and 3 deletions

View File

@@ -532,14 +532,14 @@ class Inkycal:
image = Image.fromarray(buffer)
return image
def calibrate(self):
def calibrate(self, cycles=3):
"""Calibrate the E-Paper display
Uses the Display class to calibrate the display with the default of 3
cycles. After a refresh cycle, a new image is generated and shown.
"""
self.Display.calibrate()
self.Display.calibrate(cycles=cycles)
def _calibration_check(self):
"""Calibration scheduler

View File

@@ -29,7 +29,7 @@ class Inkyimage:
# give an OK message
logger.info(f'{__name__} loaded')
def load(self, path):
def load(self, path:str) -> None:
"""loads an image from a URL or filepath.
Args: