pic32/libraries/SoftPWMServo/SoftPWMServo.cpp
/*
 * Return the current pulse time in microseconds
 */
Return the current pulse time in microseconds
Return the current pulse time in microseconds
int SoftServo::readMicroseconds()
{
    unsigned int pulsewidth;
    if (this->attached())
    {
        pulsewidth = SoftPWMServoServoRead(this->pin);
    }
    else 
    {
        pulsewidth = 0;
    }
    return pulsewidth;
}
int SoftServo :: readMicroseconds ( ) { unsigned int pulsewidth ; if ( this -> attached ( ) ) { pulsewidth = SoftPWMServoServoRead ( this -> pin ) ; } else { pulsewidth = 0 ; } return pulsewidth ; }
Return the current pulse time in microseconds
Return the current pulse time in microseconds