I've recently been trying to make program using IRremote(library) in my Arduino IDE(v1.8.9), but whenever I hit the upload button this error message is returned
Sketch uses 7514 bytes (23%) of program storage space. Maximum is 32256 bytes. Global variables use 415 bytes (20%) of dynamic memory, leaving 1633 bytes for local variables. Maximum is 2048 bytes.
avrdude: verification error, first mismatch at byte 0x0002
0x5d != 0x62 avrdude: verification error; content mismatch
avrdude: verification error; content mismatch
I'm using Arduino UNO R3
This is the code I'm trying to run
#include <IRremote.h>
int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
}
void loop()
{
if (irrecv.decode(&results))
{
Serial.println(results.value, HEX);
irrecv.resume(); // Receive the next value
}
}
Also, every other code(not using the IRremote library) uploads just fine without any errors.