MCPcopy Create free account
hub / github.com/Arduino-IRremote/Arduino-IRremote / compensateAndPrintIRResultAsCArray

Method compensateAndPrintIRResultAsCArray

src/IRReceive.hpp:2308–2310  ·  view source on GitHub ↗

* Dump out the IrReceiver.irparams.rawbuf[] to be used as C definition for sendRaw(). * * * Print ticks in 8 bit format to save space. * Maximum is 255*50 microseconds = 12750 microseconds = 12.75 ms, which hardly ever occurs inside an IR sequence. * Recording of IRremote anyway stops at a gap of RECORD_GAP_MICROS (5 ms). * * @param aSerial The Print object on which to write, for Arduino

Source from the content-addressed store, hash-verified

2306 * @param aDoCompensate Compensate received values by MARK_EXCESS_MICROS, like it is done for decoding!
2307 */
2308void IRrecv::compensateAndPrintIRResultAsCArray(Print *aSerial, bool aOutputMicrosecondsInsteadOfTicks) {
2309 printIRResultAsCArray(aSerial, aOutputMicrosecondsInsteadOfTicks, true);
2310}
2311void IRrecv::printIRResultAsCArray(Print *aSerial, bool aOutputMicrosecondsInsteadOfTicks, bool aDoCompensate) {
2312// Start declaration
2313 if (aOutputMicrosecondsInsteadOfTicks) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected