MCPcopy Create free account
hub / github.com/Arduino-IRremote/Arduino-IRremote / enableHighFrequencyIROut

Method enableHighFrequencyIROut

src/IRSend.hpp:1541–1552  ·  view source on GitHub ↗

Used for Bang&Olufsen

Source from the content-addressed store, hash-verified

1539#if defined(SEND_PWM_BY_TIMER)
1540// Used for Bang&Olufsen
1541void 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
1555uint16_t IRsend::getPulseCorrectionNanos() {

Callers

nothing calls this directly

Calls 1

timerConfigForSendFunction · 0.85

Tested by

no test coverage detected