implement clear-display script
This commit is contained in:
12
clear_display.py
Normal file
12
clear_display.py
Normal 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!")
|
Reference in New Issue
Block a user