resources/libtiny/Servo.cpp
//=============================================================================
// FUNCTION:    uint16_t readMicroseconds()
//
// DESCRIPTION: Gets the last written servo pulse width in microseconds.
//
// INPUT:       Nothing
//
// RETURNS:     The pulse width in microseconds
//
//=============================================================================
uint16_t readMicroseconds()
DESCRIPTION: Gets the last written servo pulse width in microseconds.

Nothing

The pulse width in microseconds
uint16_t readMicroseconds () DESCRIPTION : Gets the last written servo pulse width in microseconds . Nothing The pulse width in microseconds
uint16_t Servo::readMicroseconds()
{
    if(servoIndex == INVALID_SERVO) return 0;
    return ServoSequencer::getServoPulseLength(servoIndex);
}
uint16_t Servo :: readMicroseconds ( ) { if ( servoIndex == INVALID_SERVO ) return 0 ; return ServoSequencer :: getServoPulseLength ( servoIndex ) ; }
FUNCTION:    uint16_t readMicroseconds()
DESCRIPTION: Gets the last written servo pulse width in microseconds.
FUNCTION : uint16_t readMicroseconds () DESCRIPTION : Gets the last written servo pulse width in microseconds .
//make sure we have a valid servo number. If it's invalid then exit doing nothing.