* Initializes the receive and feedback pin * @param aReceivePin The Arduino pin number, where a demodulating IR receiver is connected. * @param aEnableLEDFeedback if true / ENABLE_LED_FEEDBACK, then let the feedback led blink on receiving IR signal * @param aFeedbackLEDPin if 0xFF, then take board specific LED_BUILTIN pin if it is defined as macro */
| 312 | * @param aFeedbackLEDPin if 0xFF, then take board specific LED_BUILTIN pin if it is defined as macro |
| 313 | */ |
| 314 | void IRrecv::begin(uint_fast8_t aReceivePin, bool aEnableLEDFeedback, uint_fast8_t aFeedbackLEDPin) { |
| 315 | |
| 316 | setReceivePin(aReceivePin); |
| 317 | #if defined(LED_RECEIVE_FEEDBACK_CODE) |
| 318 | setLEDFeedback(aEnableLEDFeedback); |
| 319 | setLEDFeedbackPin(aFeedbackLEDPin); |
| 320 | #else |
| 321 | (void) aEnableLEDFeedback; |
| 322 | (void) aFeedbackLEDPin; |
| 323 | #endif |
| 324 | |
| 325 | #if defined(_IR_MEASURE_TIMING) && defined(_IR_TIMING_TEST_PIN) |
| 326 | pinModeFast(_IR_TIMING_TEST_PIN, OUTPUT); |
| 327 | #endif |
| 328 | start(); |
| 329 | } |
| 330 | |
| 331 | /** |
| 332 | * Sets / changes the receiver pin number |
nothing calls this directly
no test coverage detected