mirror of
https://github.com/supleed2/ELEC60013-ES-CW1.git
synced 2024-11-10 01:35:50 +00:00
Update main.py
This commit is contained in:
parent
b8d21cf0e7
commit
ac5f883981
2
main.py
2
main.py
|
@ -16,6 +16,6 @@ f.close()
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
[X,Y,Z] = accel.readAll()
|
[X,Y,Z] = accel.readAll()
|
||||||
with open("output.txt","a") as f:
|
with open(name,"a") as f:
|
||||||
print("X: ",X,"\tY: ",Y,"\t Z: ",Z,"\n")
|
print("X: ",X,"\tY: ",Y,"\t Z: ",Z,"\n")
|
||||||
print(X,Y,Z, file=f)
|
print(X,Y,Z, file=f)
|
Loading…
Reference in a new issue