28 enable(frequency/1000);
29 for (
unsigned int i = 0; i < irSequence.
getLength(); i++) {
49 if (instance == NULL && create)
59 void IrSenderPwm::enable(
unsigned char khz UNUSED) {
#define TIMER_CONFIG_KHZ(val)
#define TIMER_DISABLE_INTR
static IrSenderPwm * getInstance(boolean create=false)
Returns a pointer to the instance, or NULL if not initialized.
Abstract base class for all sending classes.
#define TIMER_DISABLE_PWM
void delayUSecs(microseconds_t T)
uint16_t frequency_t
Type for modulation frequency in Hz.
pin_t getOutputPin() const
Sending function using timer PWM.
size_t getLength() const
Returns the length of the data.
const microseconds_t * getDurations() const
This class consists of a vector of durations.
static IrSenderPwm * newInstance()
Creates a new instance (if not existing) and returns it.
void send(const IrSequence &sequence, frequency_t frequency=IrSignal::defaultFrequency)
Sends an IrSequence with the prescribed frequency.
Definition of timers etc is encapsulated in this file.