h (again!)
i am working on LED DISPLAY and i have a problem.
here are some variables
//these are patterns for shift out in led display#define A {B00111100,B01000010,B01000010,B01000010,B01111110,B01000010,B01000010,B01000010}
#define B {B01111100,B01000010,B01000010,B01111100,B01000010,B01000010,B01000010,B01111100}
#define C {B00111110,B01000000,B01000000,B01000000,B01000000,B01000000,B01000000,B00111110}
#define D {B01111100,B01000010,B01000010,B01000010,B01000010,B01000010,B01000010,B01111100}
#define E {B01111110,B01000000,B01000000,B01111100,B01000000,B01000000,B01000000,B01111110}
//these are the variables that program will use for shifting out. like this byte patterns[numPatterns][10]={pat1,pat2,pat2,pat4,pat5}; )
#define pat1
#define pat2
#define pat3
#define pat4
#define pat5
//these are the variables that are coming via serial communication ( for example in define serial_income1 i will store the letter A,on define serial_income2 i will store the letter C)
#define serial_income1
#define serial_income2
#define serial_income3
#define serial_income4
#define serial_income5
how can i store in pat1,pat2,pat3,pat4,pat4,pat5 the binaries of patterns A,B,C,D, accordingly to the data that serial_income have?
in other words
i want a program that when i send a text via Serial (for example ABACD) the equivalent pattern to be saved in pat1,pat2,pat3,pat4,pat5)
still comfused?
i want to make this program so i can send via serial communication the pattterns i want
code:
http://www.instructables.com/files/orig/FWE/03YD/G56ZZXYW/FWE03YDG56ZZXYW.txt[/size]