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

12
clear_display.py Normal file
View File

@@ -0,0 +1,12 @@
"""
Clears the display of any content.
"""
from inkycal import Inkycal
print("loading Inkycal and display driver...")
inky = Inkycal(render=True) # Initialise Inkycal
print("clearing display...")
inky.calibrate(cycles=1) # Calibrate the display
print("clear complete...")
print("finished!")