int disable_motors(){ kill_pwm(); return gpio_set_value(MOT_STBY, LOW); }
/***************************************************************** * int disable_motors() * * turns off the standby pin to disable the h-bridge ICs * and disables PWM output signals, returns 0 on success *****************************************************************/ int disable_motors(){ kill_pwm(); return digitalWrite(MOT_STBY, LOW); }
int enable_motors(){ kill_pwm(); return gpio_set_value(MOT_STBY, HIGH); }
/***************************************************************** * enable_motors() * * turns on the standby pin to enable the h-bridge ICs * returns 0 on success *****************************************************************/ int enable_motors(){ kill_pwm(); return digitalWrite(MOT_STBY, HIGH); }