How I run the function in exactly 0.43 second in python?

66 Views Asked by At

I have a question. I have the function to run the EV3 motor.

def motor_decrease(speed_decrease):
    left_motor.run(speed=left_motor.speed() - speed_decrease) 
    right_motor.run(speed=right_motor.speed() - speed_decrease )

So i want to run the function in 0,43s each i invoke the function. How can i solve the problem to run like that ? Thank you for your answer.

0

There are 0 best solutions below