Merge branch 'main' into fullscreen_weather_module

This commit is contained in:
mrbwburns
2024-01-20 15:44:17 +01:00
committed by GitHub
9 changed files with 202 additions and 6 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