src/ir_Pronto.hpp
void IRrecv::compensateAndPrintIRResultAsPronto(Print *aSerial, unsigned int aFrequencyHertz) {
    aSerial->println(F("Pronto Hex as string"));
    aSerial->print(F("char prontoData[] = \""));
    dumpNumber(aSerial, aFrequencyHertz > 0 ? learnedToken : learnedNonModulatedToken);
    dumpNumber(aSerial, toFrequencyCode(aFrequencyHertz));
    dumpNumber(aSerial, (decodedIRData.rawDataPtr->rawlen + 1) / 2);
    dumpNumber(aSerial, 0);
    unsigned int timebase = toTimebase(aFrequencyHertz);
    compensateAndDumpSequence(aSerial, &decodedIRData.rawDataPtr->rawbuf[1], decodedIRData.rawDataPtr->rawlen - 1, timebase); // skip leading space
    aSerial->println("\";");
}
/**
 * Print the result (second argument) as Pronto Hex on the Print supplied as argument.
 * Used in the ReceiveDump example.
 * @param aSerial The Print object on which to write, for Arduino you can use &Serial.
 * @param aFrequencyHertz Modulation frequency in Hz. Often 38000Hz.
 */
Print the result (second argument) as Pronto Hex on the Print supplied as argument.
Used in the ReceiveDump example.
@param aSerial The Print object on which to write, for Arduino you can use &Serial.
@param aFrequencyHertz Modulation frequency in Hz.
Print the result ( second argument ) as Pronto Hex on the Print supplied as argument . Used in the ReceiveDump example . @param aSerial The Print object on which to write for Arduino you can use &Serial . @param aFrequencyHertz Modulation frequency in Hz .
void IRrecv::compensateAndPrintIRResultAsPronto(Print *aSerial, unsigned int aFrequencyHertz) {
    aSerial->println(F("Pronto Hex as string"));
    aSerial->print(F("char prontoData[] = \""));
    dumpNumber(aSerial, aFrequencyHertz > 0 ? learnedToken : learnedNonModulatedToken);
    dumpNumber(aSerial, toFrequencyCode(aFrequencyHertz));
    dumpNumber(aSerial, (decodedIRData.rawDataPtr->rawlen + 1) / 2);
    dumpNumber(aSerial, 0);
    unsigned int timebase = toTimebase(aFrequencyHertz);
    compensateAndDumpSequence(aSerial, &decodedIRData.rawDataPtr->rawbuf[1], decodedIRData.rawDataPtr->rawlen - 1, timebase); 
    aSerial->println("\";");
}
void IRrecv :: compensateAndPrintIRResultAsPronto ( Print * aSerial , unsigned int aFrequencyHertz ) { aSerial -> println ( F ( " " ) ) ; aSerial -> print ( F ( " \" " ) ) ; dumpNumber ( aSerial , aFrequencyHertz > 0 ? learnedToken : learnedNonModulatedToken ) ; dumpNumber ( aSerial , toFrequencyCode ( aFrequencyHertz ) ) ; dumpNumber ( aSerial , ( decodedIRData . rawDataPtr -> rawlen + 1 ) / 2 ) ; dumpNumber ( aSerial , 0 ) ; unsigned int timebase = toTimebase ( aFrequencyHertz ) ; compensateAndDumpSequence ( aSerial , & decodedIRData . rawDataPtr -> rawbuf [ 1 ] , decodedIRData . rawDataPtr -> rawlen - 1 , timebase ) ; aSerial -> println ( " \" " ) ; }
Print the result (second argument) as Pronto Hex on the Print supplied as argument.
Print the result ( second argument ) as Pronto Hex on the Print supplied as argument .
// skip leading space