Pardon me, but I'm new to Arduino. I just started working on my IR sensor/remote and have managed to get all the hex codes for all my keys. However, instead of typing the hex codes into the code every time, I would like to save the codes in a separate library, so that I can include it into any IR-related projects. How can I do so? Please help ASAP
If you need the hex codes, here are the codes:
Please give us an example of how you are implementing some of those codes in a currently functioning program.
If you don't want to type the codes you're going to have to give them names that you are willing to type and those in your list won't do...can you imagine the chaos you'd cause if you said that everywhere in your program that you type 1 it should be replaced by FF30CF?
Have a look at how note names to frequencies for tone() is done in pitches.h and then set up a similar set of defines for your codes. You don't need anything more than a .h file.