Hello, I am doing a simple project that my robotics teacher assigned me. I am having a problem that she doesn't know how to solve.
I am getting this error:
exit status 1
redefinition of 'IRrecv irrecv'
This is the part where it's going wrong
#include <IRremote.h>
const int MANDO = 1;
IRrecv irrecv (MANDO);
decode_results results;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn();
}
void loop()
{
if (irrecv.decode(&results))
{
Serial.println(results.value);
irrecv.resume();
}
}
int marti = 1;
IRrecv irrecv(marti);
decode_results codigo;
(sorry if you don't understand spanish)
Thank you