Single Button IR Remote

You mean this?

// selected preset
// array with IR codes to be sent
// below contains 2 entries for presets; others default to all zeroes
// if a single digit (e.g. 1 instead of 001) is needed, populate the last one of the 3 and set the others t 0x0000
// this assumes that there is no code that uses 0x0000; you can change it to any unused code
uint16_t presets[NUMPRESETS][MAXDIGITS] =