resources/libtiny/Servo.cpp
//=============================================================================
// FUNCTION:    void setServoPin(uint8_t servoNumber, uint8_t newPin)
//
// DESCRIPTION: Sets which pin on PortB should be pulsed for a servo slot.
//
// INPUT:       servoNumber - which servo slot to update
//              newPin - which pin on portB should be pulsed
//
// RETURNS:     Nothing
//
//=============================================================================
void setServoPin(uint8_t servoNumber, uint8_t newPin)
DESCRIPTION: Sets which pin on PortB should be pulsed for a servo slot.

which servo slot to update
newPin - which pin on portB should be pulsed

Nothing
void setServoPin ( uint8_t servoNumber uint8_t newPin ) DESCRIPTION : Sets which pin on PortB should be pulsed for a servo slot . which servo slot to update newPin - which pin on portB should be pulsed Nothing
void ServoSequencer::setServoPin(uint8_t servoNumber, uint8_t newPin)
{
    if( (servoNumber < MAX_SERVOS      ) &&
        (servoRegistry[servoNumber].slotOccupied == true)   )
    {
        servoRegistry[servoNumber].pin = newPin;
    }
    else
    {
    }
}
void ServoSequencer :: setServoPin ( uint8_t servoNumber , uint8_t newPin ) { if ( ( servoNumber < MAX_SERVOS ) && ( servoRegistry [ servoNumber ] . slotOccupied == true ) ) { servoRegistry [ servoNumber ] . pin = newPin ; } else { } }
FUNCTION:    void setServoPin(uint8_t servoNumber, uint8_t newPin)
DESCRIPTION: Sets which pin on PortB should be pulsed for a servo slot.
FUNCTION : void setServoPin ( uint8_t servoNumber uint8_t newPin ) DESCRIPTION : Sets which pin on PortB should be pulsed for a servo slot .
//make sure we got a valid slot number and the slot is registered to a servo //Servo number is out of range or is not allocate to a servo. Do nothing.