??? 03/16/05 03:48 Read: times |
#89755 - solved ! Responding to: ???'s previous message |
Thanks a ton all of you.....
I am now counting the charaters... when the count reaches max. then i go to next line.... Andy i really didnt understand what you are trying to say.... I've made my own character generater...and thus made my list of pins to be fired and made the functions... I have written a function called fire...where i give in the pin numbers...and the function fires them for the required ontime... so for the char 'H' my funtion is like H() { fire(pin1,pin2,pin3,pin4,pin5,pin6,pin7); fire(oo,oo,oo,pin4,oo,oo,oo);//oo means pin not fired fire(oo,oo,oo,pin4,oo,oo,oo); fire(oo,oo,oo,pin4,oo,oo,oo); fire(pin1,pin2,pin3,pin4,pin5,pin6,pin7); } I really dont get how to go about doing this look up table. I use a photo interrupter that generates dot pulses and i use them control signal for firing my pins... Every character is 5 DP long and a space is 3 Dp long... So all char are equal width.. Also since i am quite new to C also...I have declared all my functions as int int a(); int b(); is this wrong... what difference is it if i declare it as char... Since all char widths are same it would be a whole lot simpler isnt it ? If my code size gets too long.... should i split up my code and then compile it with sdcc.. If i should split it how do i go about doing it.. Also when my code begins... should i declare my functions... what i have done now is... #include<headerfile> /*list of functions*/ int timer(); int A(); int B(); .....etc.. int i,j,k;/*list of variables used*/ main() { /***************/ } /********all functions defined*********/ timer() { TH.... TL..... ... .. } /* this way all functions are defined....*/ Now my doubt is in case if i write int timer() { { TH.... TL..... ... .. } Then is it neccessary to delare the funtion before main() ? Thats it for now... thanks again all of you. -rahul |