Used for Bang&Olufsen
| 1539 | #if defined(SEND_PWM_BY_TIMER) |
| 1540 | // Used for Bang&Olufsen |
| 1541 | void IRsend::enableHighFrequencyIROut(uint_fast16_t aFrequencyKHz) { |
| 1542 | timerConfigForSend(aFrequencyKHz); // must set output pin mode and disable receive interrupt if required, e.g. uses the same resource |
| 1543 | // For Non AVR platforms pin mode for SEND_PWM_BY_TIMER must be handled by the timerConfigForSend() function |
| 1544 | // because ESP 2.0.2 ledcWrite does not work if pin mode is set, and RP2040 requires gpio_set_function(IR_SEND_PIN, GPIO_FUNC_PWM); |
| 1545 | # if defined(__AVR__) |
| 1546 | # if defined(IR_SEND_PIN) |
| 1547 | pinModeFast(IR_SEND_PIN, OUTPUT); |
| 1548 | # else |
| 1549 | pinModeFast(sendPin, OUTPUT); |
| 1550 | # endif |
| 1551 | # endif |
| 1552 | } |
| 1553 | #endif |
| 1554 | |
| 1555 | uint16_t IRsend::getPulseCorrectionNanos() { |
nothing calls this directly
no test coverage detected