I'm currently stuck with a problem, related to an IR remote controlled using an Arduino Uno.
I'm having the raw data signal contained in an array:
Samsung_power[68] = {4500, 243, .... and so on};
Due to the fact, that there are quite a lot of functions on a Samsung remote control, I would find it a lot easier, than when I receive a command from UART, like a value ranging from 0 - 20, then the number would be looked up in a table and the appropiate raw data array would be chosen.
So:
FunctionArray[20] = {Samsung_power, Channel_1, Channel_2, Channel_3.. etc};
However, the compiler is by no chance letting me do so, and so I can imagine something is completely wrong here :). So I was hoping some of you had an idea, how to solve this particular problem:
PSEUDOCODE:
receive = UART_READ();
sendRawDataToIRLED(FunctionArray[receive]);