HEX Split

You can use sprintf() to convert a numeric value to a string, in whatever format you like, including HEX.

Then, you can pick apart the characters in whatever way you want. Given that you may get AC5D7A when pressing the '1' button and 123976 when pressing the '2' button, how is that useful, though? You'd have to create a table showing the button to press and the resulting hex code, in order for the user to know which button to press to make, for instance, pin 7 go high.

The result on the Arduino side will be a series of 6 to 10 actions that happen when any given button on the remote is pressed. How converting the value to a HEX string and performing each action individually is better than performing the set of actions because the value was AC5D7A is what I am having trouble understanding.