Update dev.py

This commit is contained in:
2025-11-30 17:40:43 +13:00
parent fe2717f51d
commit 501fd37def
2 changed files with 7 additions and 0 deletions

2
dev.py
View File

@@ -28,6 +28,8 @@ for cmd in sys.argv[1:]:
if ser.in_waiting > 0: # Check if there is data in the buffer if ser.in_waiting > 0: # Check if there is data in the buffer
data = ser.readline().decode('utf-8').strip() # Read and decode the data data = ser.readline().decode('utf-8').strip() # Read and decode the data
print(data) print(data)
case "clean":
subprocess.call(["mpremote", "connect", port, "fs", "rm", ":/settings.json"])

View File

@@ -136,3 +136,8 @@ if __name__ == "__main__":
asyncio.run(main()) asyncio.run(main())