7#define HAS_SET_PMW_FREQUENCY2
8#define HAS_INTERRUPT_ARG
13#define HAS_SET_PMW_FREQUENCY1
14#define HAS_INTERRUPT_ARG
19#if defined(ARDUINO_ARCH_STM32)
20#define HAS_SET_PMW_FREQUENCY1
25#if defined(ARDUINO_ARCH_RP2040)
27#define HAS_SET_PMW_FREQUENCY1
30#define USE_RAW_DELAY false
36static const uint32_t CARRIER_HZ = 38000;
40static const uint32_t DEFAULT_BIT_FREQ_HZ = 1000;
43static const uint16_t DEFAULT_FRAME_SIZE = 256;
50using namespace pulsewire;