20#ifdef HAS_HARDWARE_PWM
32 if (instance !=
nullptr)
35#ifdef HAS_HARDWARE_PWM
44 if (instance ==
nullptr && create)
50 if (instance !=
nullptr)
51#ifdef HAS_HARDWARE_PWM
uint8_t pin_t
Type for GPIO pin, compatible with Arduino libs.
static void deleteInstance()
static IrSenderPwmHard * newInstance(pin_t ouputPin=Board::getInstance() ->defaultPwmPin())
Creates a new instance (if not existing) and returns it.
Sending function using timer PWM.
Sending function using timer PWM.
static void deleteInstance()
IrSenderPwm(pin_t sendPin)
static IrSenderPwm * getInstance(bool create=false, pin_t outputPin=Board::getInstance() ->defaultPwmPin())
Returns a pointer to the instance, or nullptr if not initialized.
static IrSenderPwm * newInstance(pin_t outputPin)
Creates a new instance (if not existing) and returns it.
Abstract base class for all sending classes.