pic32/libraries/SoftPWMServo/SoftPWMServo.cpp
// Return an 8-bit percentage based on PWMValue
Return an 8-bit percentage based on PWMValue
Return an 8 - bit percentage based on PWMValue
int8_t SoftPWMServoPWMRead(uint32_t Pin)
{
    if (Pin >= SOFTPWMSERVO_MAX_PINS)
    {
        return SOFTPWMSERVO_ERROR;
    }
    return ((SoftPWMServoRawRead(Pin) * 255)/FrameTime);
}
int8_t SoftPWMServoPWMRead ( uint32_t Pin ) { if ( Pin >= SOFTPWMSERVO_MAX_PINS ) { return SOFTPWMSERVO_ERROR ; } return ( ( SoftPWMServoRawRead ( Pin ) * 255 ) / FrameTime ) ; }
Return an 8-bit percentage based on PWMValue
Return an 8 - bit percentage based on PWMValue