diff --git a/libraries/IRremote/src/private/IRTimer.hpp b/libraries/IRremote/src/private/IRTimer.hpp index 2d3c403..c34dd52 100644 --- a/libraries/IRremote/src/private/IRTimer.hpp +++ b/libraries/IRremote/src/private/IRTimer.hpp @@ -2072,9 +2072,15 @@ extern "C" void __attribute__((noinline, section(".ram_text"), optimize("O3"))) TIM16_CLEAR_INT_MASK(htimer16_0, 0xFFFFFFFF); // reset timer interrupt flags } +// -------------------------- sending -------------------------- // # if defined(SEND_PWM_BY_TIMER) -#include "pins_arduino.h" -#define IR_SEND_PIN 3 +#include "pins_arduino.h" + +# if defined(ARDUINO_START_MIK32_V1) +#define IR_SEND_PIN P0_0 +# else +#define IR_SEND_PIN 3 +# endif // START_MIK32_V1 static TIMER32_HandleTypeDef ir_sender_htimer; static TIMER32_CHANNEL_HandleTypeDef ir_sender_htimer_channel;