Sorry, I shouldve worded that better. The code is in the link that follows, I forgot to erase that sentence. I am sorry I am still learning here and did not manage to post it as a link. I still cant. It only goes to text. I didnt give you the code, I am terribly sorry about that, I dont know what made me put the link there, probably becuase thats how we do it at school, I wont do it again. This is the demo code from the link I sent. I am not sure what that means, and I will google it.
This is what it says:
/*
- IRremote: IRrecvDemo - demonstrates receiving IR codes with IRrecv
- An IR detector/demodulator must be connected to the input RECV_PIN.
- Version 0.1 July, 2009
- Copyright 2009 Ken Shirriff
-
http://arcfn.com
*/
#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
}
}
Please do not get mad at me if that is still wrong.