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

Method printIRInfo

src/IRCommandDispatcher.hpp:271–290  ·  view source on GitHub ↗

* Start of the IR library independent code *******************************************/

Source from the content-addressed store, hash-verified

269 * Start of the IR library independent code
270 *******************************************/
271void IRCommandDispatcher::printIRInfo(Print *aSerial) {
272 aSerial->println();
273 // For available IR commands see IRCommandMapping.h https://github.com/ArminJo/PWMMotorControl/blob/master/examples/SmartCarFollower/IRCommandMapping.h
274#if defined(USE_IRMP_LIBRARY)
275# if defined(IR_REMOTE_NAME)
276 aSerial->println(F("Listening to IR remote of type " STR(IR_REMOTE_NAME) " at pin " STR(IRMP_INPUT_PIN)));
277# else
278 aSerial->println(F("Listening to IR remote at pin " STR(IRMP_INPUT_PIN)));
279# endif
280 aSerial->print(F("Accepted protocols are: "));
281 irmp_print_active_protocols(aSerial);
282 aSerial->println();
283#else
284# if defined(IR_REMOTE_NAME)
285 aSerial->println(F("Listening to IR remote of type " STR(IR_REMOTE_NAME) " at pin " STR(IR_RECEIVE_PIN)));
286# else
287 aSerial->println(F("Listening to IR remote at pin " STR(IR_RECEIVE_PIN)));
288# endif
289#endif
290}
291
292/*
293 * The main dispatcher function called by IR-ISR, main loop and checkAndRunSuspendedBlockingCommands()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected