Manual
www.nexusrobot.com Robot Kits manual 
  38
Return:   Direction pin 
unsigned char getPinIRQ() const 
      Get the IRQ Pin number 
Return:   IRQ pin 
unsigned char getPinIRQB() const 
      Get the IRQB Pin number 
 Return:   IRQB pin 
unsigned int runPWM(unsigned int PWM,bool dir,bool saveDir=true); 
Set the PWM and direction for Motors .then return the PWM. 
Parameters: 
unsigned int PWM 
The PWM set for the Motor 
Bool dir   
The direction set for the Motor 
Bool saveDir   
A flag to confirm if the direction will be reset 
 Return:   PWM 
unsigned int getPWM() const 
    Get the motor’s current pwm 
 Return:   Speed PWM 
unsigned int advancePWM(unsigned int PWM) 
      Set the pwm when the motor run advance 
Parameters: 
unsigned int PWM 
The PWM set for Motor 
 Return:  runPWM(PWM,DIR_ADVANCE) 
 See:   Motor:: runPWM() 
unsigned int backoffPWM(unsigned int PWM); 
    Set the pwm when the motor backoff 
This will lie within the range specified at Motor::runPWM() 










