rcservo_SendPWMPulses(channel, period, duty, count);
while(rcservo_IsPWMCompleted(channel) == false){
break;
}
dragonax wrote:is there any way to cancel the pwm signal once started? in the following code I tried "break" while loop doesn't work
rcservo_SendPWMPulses(channel, period, duty, count);
....
//trick to cancel PWM pulses of the last rcservo_SendPWMPulses(cannel, ...) call
rcservo_SendPWMPulses(channel, period, duty, 1L);
while(rcservo_IsPWMCompleted(channel) == false);