Infrared4Arduino
IrSenderSimulator.cpp
Go to the documentation of this file.
1 #include "IrSenderSimulator.h"
2 
3 void IrSenderSimulator::send(const IrSequence& irSequence, frequency_t frequency) {
4  stream.print(F("IrSenderSimulator: "));
5  boolean printedSomething = IrSignal::dumpFrequency(stream, frequency);
6  if (printedSomething)
7  stream.print(' ');
8  irSequence.dump(stream, true);
9 }
void dump(Stream &stream, boolean usingSigns=false) const
Prints the IrSequence on the stream provided.
Definition: IrSequence.cpp:28
uint16_t frequency_t
Type for modulation frequency in Hz.
Definition: InfraredTypes.h:33
This class consists of a vector of durations.
Definition: IrSequence.h:12
boolean dumpFrequency(Stream &stream) const
If the frequency is sensible, print it to the stream and return true.
Definition: IrSignal.h:88
void send(const IrSequence &irSequence, frequency_t frequency=IrSignal::defaultFrequency)
Sends an IrSequence with the prescribed frequency.