test async

This commit is contained in:
Ace
2023-11-22 12:45:07 +01:00
parent dae4ce31b2
commit f4d08c64a2
3 changed files with 34 additions and 217 deletions

View File

@@ -1,7 +1,7 @@
#!python3
from inkycal import Inkycal # Import Inkycal
import asyncio
from inkycal import Inkycal
inky = Inkycal(render=True) # Initialise Inkycal
# If your settings.json file is not in /boot, use the full path: inky = Inkycal('path/to/settings.json', render=True)
inky.test() # test if Inkycal can be run correctly, running this will show a bit of info for each module
inky.run() # If there were no issues, you can run Inkycal nonstop
asyncio.run(inky.run()) # If there were no issues, you can run Inkycal nonstop