IR number input

I am using an IR diode to control Arduino.
I want to make number input from IR, then display it on the screen.
When you press 'five' you get 'five' on the screen, when you press 'one' then 'three' you get 'thirteen' on the screen. How do I do that?
P.S. I know IR codes, i just need to do a numbers array or something to combine all entered numbers together and display them.

What does this have to do with controling an Arduino?

ieee488:
What does this have to do with controling an Arduino?

I just need to get the entered numbers and then compare them.
I want to make software reboot using code '111', then pressing '#' on IR remote controller.

I want to make software reboot using code '111', then pressing '#' on IR remote controller.

So, what is the problem? You need to see if there is IR data. If there is, decode() will return true. The data of interest is in the variable you tell decode() to write to. If the value corresponds to a known value, you know what key was pressed. You store something about that key in an array, and increment the index into the array, unless the key is '#'. In that case, store a NULL in the array, and then call atoi().

PaulS:
So, what is the problem? You need to see if there is IR data. If there is, decode() will return true. The data of interest is in the variable you tell decode() to write to. If the value corresponds to a known value, you know what key was pressed. You store something about that key in an array, and increment the index into the array, unless the key is '#'. In that case, store a NULL in the array, and then call atoi().

Thank you, figured this out!