31 static constexpr unsigned int defaultDutyCycle = 50U;
uint8_t pin_t
Type for GPIO pin, compatible with Arduino libs.
static Board * getInstance()
Sending function using timer PWM.
static void deleteInstance()
static IrSenderPwm * getInstance(bool create=false, pin_t outputPin=Board::getInstance() ->defaultPwmPin())
Returns a pointer to the instance, or nullptr if not initialized.
static unsigned int getDutyCycle()
static IrSenderPwm * newInstance(pin_t outputPin)
Creates a new instance (if not existing) and returns it.
Abstract base class for all sending classes.