OlliTut/my_control_script.py
2021-06-27 15:20:44 +02:00

18 lines
405 B
Python

from time import sleep
import model
def main(param_model):
param_model.start_measuring()
with open("script_output.log", "w") as my_file:
for i in range(20):
sleep(0.5)
x, y = param_model.sensors["temp"].get_data
my_file.write(f"x: {x}, y: {y}\n")
param_model.stop_measuring()
if __name__ == "__main__":
print("wrong call")
# main(model.Model())