IR Remote Help

HI I was looking for some help or direction regarding IR remotes and receivers. I am looking for help with the programming regarding this. I tried several examples but I get an error that WProgram.h is not found. If anyone has any other ages related to this or has any way to help that would be greatly appreciated.

This is a little bit time sensitive so if you guys could respond ASAP that would be great.

I got the code to work but when I press a button it gives me code. However when I hold down any button it gives me the same code.

I'm trying to use this to control motors and having the same code for every button wont work.

If anyone has any help that would be great.

I got the code to work but when I press a button it gives me code. However when I hold down any button it gives me the same code.

You are using the word code to mean two different things. Show your code (as in Arduino sketch) and any serial output that shows the code (as in IR value) that is generated from two different buttons, including one being held down.

Holding a button down should send the same value over and over, until you release the button.

PaulS:

I got the code to work but when I press a button it gives me code. However when I hold down any button it gives me the same code.

Holding a button down should send the same value over and over, until you release the button.

... but it won't necessarily be a different code for each button. Some remotes have a "repeat that last button" code that they send repeatedly when a button is held down. They use the same repeat code for all buttons. Your sketch will have to remember what button was last pressed and use the 'repeat' code to know if the button is still being held down. Since there is no 'button up' code you will need a timer to determine if the button is no longer being pressed (it has been more than 'n' milliseconds since the last 'repeat' code arrived.)