Hello (from a brand newby)
I have a series of arrays, say 1 to 5, each of 40 integers.
e.g.
int Offset_1[40] = {6, 19, 32, 6, 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int Offset_2[40] = {13, 25, 38, 6, 19, 32, 13, 16, 38, 6, 19, 32, 13, 16, 38, 6, 19, 32, 6, 19, 32, 6, 16, 25, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int Offset_3[40] = {13, 25, 38, 6, 19, 32, 13, 25, 38, 6, 19, 32, 13, 25, 38, 6, 19, 32, 6, 19, 32, 6, 19, 32, 6, 19, 32, 6, 19, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0};
int Offset_4[40] = {6, 19, 32, 6, 19, 32, 6, 19, 32, 6, 19, 32, 6, 19, 32, 6, 19, 32, 6, 19, 32, 6, 19, 32, 6, 19, 32, 6, 19, 32, 6, 19, 32, 6, 19, 32, 6, 16, 25};
int Offset_5[40] = {6, 19, 32, 6, 19, 32, 6, 19, 32, 13, 25, 38, 6, 19, 32, 13, 25, 38, 6, 19, 32, 6, 19, 32, 6, 19, 32, 6, 16, 25, 6, 16, 25, 0, 0, 0, 0, 0, 0};
An integer input is requested by the sketch, say 1 to 5. Input received, say "3".
Then, based on the input received, I would like to -
Copy CurrentOffset[40] = Offset_3[40]
Would someone be kind enough to let me know how I can accomplish this? I'd be grateful.
I do hope that I have posted this question in the right place, if not, then please let me know where should I post this question.
Thank You
Ajay Talwar