Hi,
If I want a function to run at a set interval I understand I should use ticker, Can I adjust the time between the function calls on the fly? or do I have to detach the ticker first and then re attach it with a new time?
I think I want to use interupt based timing to control a stepper motor, as I wan't to implement acceleration I want to adjust the interupt timing to ramp the speed of the motor up and down, or am I taking the wrong approach. At the moment i'm just pausing using wait_us(delay_time) and changing the delay time to suit.
Are there any obvious advantages/disadvantages to either approach?
Thanks.
Mike.
Hi,
If I want a function to run at a set interval I understand I should use ticker, Can I adjust the time between the function calls on the fly? or do I have to detach the ticker first and then re attach it with a new time?
I think I want to use interupt based timing to control a stepper motor, as I wan't to implement acceleration I want to adjust the interupt timing to ramp the speed of the motor up and down, or am I taking the wrong approach. At the moment i'm just pausing using wait_us(delay_time) and changing the delay time to suit.
Are there any obvious advantages/disadvantages to either approach?
Thanks.
Mike.