Skip to content
Snippets Groups Projects
Commit 8c34681a authored by Quentin Bolsee's avatar Quentin Bolsee
Browse files

main code

parent 9bad84ff
Branches
No related tags found
No related merge requests found
{
"use_machine": false,
"rotate": false,
"fullscreen": false,
"overlays": {
......
......@@ -170,10 +170,11 @@ def main():
with open("config.json", "r") as f:
config = json.load(f)
app = MainApplication(fullscreen=config["fullscreen"], rotate=config["rotate"])
if config["use_machine"]:
m = machine.Machine(config["ports"])
m.pen_action(2, False)
m.home()
app = MainApplication(fullscreen=config["fullscreen"], rotate=config["rotate"])
app.machine = m
app.load_overlays(config["overlays"])
app.run()
......@@ -183,4 +184,3 @@ def main():
if __name__ == "__main__":
main()
+
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment