storing ir remote codes in non-volatile memory

drhoff:

GoForSmoke:
It's really not that hard even with IDE 0022 and has been streamlined a bit since. I can give you cookbook for 0022 and it will probably work but you might want the newer syntax.

Am I correct in interpreting this as you saying there IS a way to save to program memory while the program is running? I can't seem to find anybody else who says this is possible.

Not with Arduino, the bootloader doesn't allow writing to flash at run time.

What you would do is get the codes while connected to a PC and send them to serial monitor or other program and then store them in PROGMEM (the old name for FRAM, it's the flash ram on the 328P that the program is stored on, flash ram/program memory become FRAM/PROGMEM names) for the new version with added codes.

Advantages are speed and not having to buy or wire anything to make it work.