//////////////////////////////////////////////////////////////////////// void mark(int time) // pulse parameters in usec { // Sends an IR mark for the specified number of microseconds. // The mark output is modulated at the PWM frequency. TCCR2A |= _BV(COM2B1); // Enable pin 3 PWM output if (time > 0) delayMicroseconds(time); } //////////////////////////////////////////////////////////////////////// void space(int time) // pulse parameters in usec { // Sends an IR space for the specified number of microseconds. // A space is no output, so the PWM output is disabled. TCCR2A &= ~(_BV(COM2B1)); // Disable pin 3 PWM output if (time > 0) delayMicroseconds(time); } ////////////////////////////////////////////////////////////////////////