/*Pat's IR Remote values   IR Receiver Demonstration 1   IMPORTANT - With the upload Cable conected to the Arduino Uno,   it demonstrates IR codes with a 38KZ IR Receiver connected to pin 2 on the Arduino Uno.   Displays results on Serial Monitor ( Select the Top Right icon on the IDE on the Computer)   If the serial monitor shows 2DO ,the code in the Arduino IDE will be OX2DO ie 0X2D0   Note- There are no letter O in the Hexadecimal Codes, only the number Zero's 0.  DroneBot Workshop 2017 http://dronebotworkshop.com */  // Include IR Remote Library by Ken Shirriff, works with old version 2.0.1 or the latest 4.4.0 #include int RECV_PIN = 2; IRrecv irrecv(RECV_PIN); decode_results results; void setup() {   Serial.begin(9600);   // In case the interrupt driver crashes on setup, give a clue to the user what's going on.   Serial.println("Enabling IRin");   irrecv.enableIRIn(); // Start the receiver   Serial.println("Enabled IRin"); } void loop() {   if (irrecv.decode(&results)) {     Serial.println(results.value, HEX);     irrecv.resume(); // Receive the next value   }   delay(100); }