int8_t dutycycle_t
Type for duty cycle in percent.
uint16_t microseconds_t
Type for durations in micro seconds.
uint32_t frequency_t
Type for modulation frequency in Hz.
This class serves as an HAL (Hardware Abstraction Layer).
static constexpr dutycycle_t defaultDutyCycle
Default duty cycle to use.
Simulates sending in the sense that it prints the IrSequences on the Stream given as argument.
void enable(frequency_t, dutycycle_t d __attribute__((unused))=Board::defaultDutyCycle)
virtual ~IrSenderSimulator()
void sendMark(microseconds_t)
IrSenderSimulator(Stream &stream_)
void send(const IrSequence &irSequence, frequency_t frequency=IrSignal::defaultFrequency, dutycycle_t dutyCycle=Board::defaultDutyCycle)
Sends an IrSequence with the prescribed frequency.
IrSenderSimulator(const IrSenderSimulator &orig)
void sendSpace(microseconds_t)
Abstract base class for all sending classes.
This class consists of a vector of durations.
static constexpr frequency_t defaultFrequency