// =========== Public Methods ================================================= void servoSetup(void) { setupTimer4(PWM_FREQUENCY); pin_is_high = 0; SERVO_A = 0; current_setpoint = 0; setpoint = PULSE_ZERO_LENGTH; pulse_length = PULSE_ZERO_LENGTH; servoStop(); }
void setupIRTransmit() { setupTimer4(); //timer 4 used to measure modulated pulses legth setupPWMForIR(); //use OC3 on D0 }