I feel that this topic will make people groan because i get the impression it comes up a bit but I really have tried to sort this out and I can't find the answer. The problem is this: I've got a long hex code (pasted below) that I know from others' posts is the discrete code for 'ext 1' for my Samsung TV. Trouble is that the system I use (an arduino chip programmed to control an IR led) needs to know the 'short' hex code - like the ones used by LIRC. (For example the 'toggle power' is E0E040BF). Can anyone help me with how to convert from the long code below to a short code like that?