2 * IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
3 * An IR detector/demodulator must be connected to the input RECV_PIN.
4 * Version 0.1 July, 2009
5 * Copyright 2009 Ken Shirriff
13 IRrecv irrecv(RECV_PIN);
15 decode_results results;
20 irrecv.enableIRIn(); // Start the receiver
24 if (irrecv.decode(&results)) {
25 Serial.println(results.value, HEX);
26 irrecv.resume(); // Receive the next value