this is the 3d time i create a thread, sorry about it, it is becouse i am noob on arduino code, but i apriciate your help
lets go on my problem now
//here are all letter's patterns:
byte A[8] = {B00111100,B01000010,B01000010,B01000010,B01111110,B01000010,B01000010,B01000010};
byte B[8] = {B01111100,B01000010,B01000010,B01111100,B01000010,B01000010,B01000010,B01111100};
byte C[8] = {B00111110,B01000000,B01000000,B01000000,B01000000,B01000000,B01000000,B00111110};
byte D[8] = {B01111100,B01000010,B01000010,B01000010,B01000010,B01000010,B01000010,B01111100};
byte E[8] = {B01111110,B01000000,B01000000,B01111100,B01000000,B01000000,B01000000,B01111110};
byte F[8] = {B01111110,B01000000,B01000000,B01111100,B01000000,B01000000,B01000000,B01000000};
byte G[8] = {B00111100,B01000010,B01000010,B01000000,B01000111,B01000010,B01000010,B00111100};
byte H[8] = {B01000010,B01000010,B01000010,B01111110,B01000010,B01000010,B01000010,B01000010};
byte I[8] = {B00111000,B00010000,B00010000,B00010000,B00010000,B00010000,B00010000,B00111000};
byte J[8] = {B00011100,B00001000,B00001000,B00001000,B00001000,B01001000,B01001000,B00110000};
byte K[8] = {B01000100,B01001000,B01010000,B01100000,B01010000,B01001000,B01000100,B01000010};
byte L[8] = {B01000000,B01000000,B01000000,B01000000,B01000000,B01000000,B01000000,B01111110};
byte M[8] = {B01000100,B10101010,B10010010,B10010010,B10000010,B10000010,B10000010,B10000010};
byte N[8] = {B01000010,B01100010,B01010010,B01001010,B01001010,B01001010,B01000110,B01000010};
byte O[8] = {B00111100,B01000010,B01000010,B01000010,B01000010,B01000010,B01000010,B00111100};
byte P[8] = {B00111100,B01000010,B01000010,B01000010,B01111100,B01000000,B01000000,B01000000};
byte Q[8] = {B00111100,B01000010,B01000010,B01000010,B01000010,B01000010,B01000110,B00111110};
byte R[8] = {B00111100,B01000010,B01000010,B01000010,B01111100,B01000100,B01000010,B01000010};
byte S[8] = {B00111100,B01000010,B01000000,B01000000,B00111100,B00000010,B01000010,B00111100};
byte T[8] = {B11111110,B00010000,B00010000,B00010000,B00010000,B00010000,B00010000,B00010000};
byte U[8] = {B01000010,B01000010,B01000010,B01000010,B01000010,B01000010,B01000010,B00111100};
byte V[8] = {B01000010,B01000010,B01000010,B01000010,B01000010,B01000010,B00100100,B00011000};
byte W[8] = {B10000010,B10000010,B10000010,B10000010,B10010010,B10010010,B10101010,B01000100};
byte X[8] = {B01000010,B01000010,B00100100,B00011000,B00011000,B00100100,B01000010,B01000010};
byte Y[8] = {B10000010,B01000100,B00101000,B00010000,B00010000,B00010000,B00010000,B00010000};
byte Z[8] = {B01111110,B00000010,B00000100,B00001000,B00010000,B00100000,B01000000,B01111110};
//these are the variables that some of previous varaibles (A...Z) will be copy to later:
byte pat_1[8] = {B00111100,B01000010,B01000010,B01000010,B01111110,B01000010,B01000010,B01000010};
byte pat_2[8] = {B00111100,B01000010,B01000010,B01000010,B01111110,B01000010,B01000010,B01000010};
byte pat_3[8] = {B00111100,B01000010,B01000010,B01000010,B01111110,B01000010,B01000010,B01000010};
byte pat_4[8] = {B00111100,B01000010,B01000010,B01000010,B01111110,B01000010,B01000010,B01000010};
byte pat_5[8] = {B00111100,B01000010,B01000010,B01000010,B01111110,B01000010,B01000010,B01000010};
byte pat_6[8] = {B00111100,B01000010,B01000010,B01000010,B01111110,B01000010,B01000010,B01000010};
//here are the variables that will coming via serial communication
char input_1="T";
char input_2="H";
char input_3="O";
char input_4="M";
char input_5="A";
char input_6="S";
What i need to do now?
to store in pat_1,pat_2,pat_3,pat_4,pat_5,pat_6 variables the contest of A..Z variables acordinary to input varaibles.
i know a way to do this like that.....(forget the syntax error, i am writing simply to be easier to understand)
//phase 1 (checking for input_1)
if input_1= 'A' then pat_1=A
if input_1= 'B' then pat_1=B
if input_1= 'B' then pat_1=B
....
...
if input_1= 'Z' then pat_1=Z
//phase 1 (checking for input_1)
if input_1= 'A' then pat_1=A
if input_1= 'B' then pat_1=B
if input_1= 'B' then pat_1=B
....
...
if input_1= 'Z' then pat_1=Z
//phase 2 (checking for input_2)
if input_2= 'A' then pat_2=A
if input_2= 'B' then pat_2=B
if input_2= 'B' then pat_2=B
....
...
if input_2= 'Z' then pat_2=Z
//and so until checking all inputs with all patterns!!!! :o
is there any other solution for this?