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
123e092d4c
commit
b8d21cf0e7
4
main.py
4
main.py
|
@ -7,7 +7,9 @@ accel = lis3dh(bus,2,10)
|
||||||
|
|
||||||
print("LIS3DH initiated successfully!")
|
print("LIS3DH initiated successfully!")
|
||||||
|
|
||||||
name = "output_"+datetime.now()+".txt"
|
now = datetime.now()
|
||||||
|
date_time = now.strftime("%d_%m_%Y_%H_%M_%S")
|
||||||
|
name = "output_"+date_time+".txt"
|
||||||
f = open(name,"x")
|
f = open(name,"x")
|
||||||
print("X","Y","Z", file=f)
|
print("X","Y","Z", file=f)
|
||||||
f.close()
|
f.close()
|
||||||
|
|
Loading…
Reference in a new issue