Yes, but how exactly does using '22' slow down a servo and '27' increase the speed of the servo?
As far as I understand, we are using two functions - delay_cycles and servo_left/right
Input to 'servo_left' function is speed - say 22.
And this speed (22) is then the input for delay_cycles. So the port is ON for that much of time. (time taken to execute delay_cycles(22).
In next case, the port would be ON for time taken to execute delay_cycles(27).
So the time the port is ON varies in both cases. How does that time variance correspond to different speeds?
I would think its just the servo that is operating for different time intervals (but at same speed).
I am just not getting this.
Please help me understand this concept.