Page 300 - 완) I MDP 프로젝트 작품 보고서(전체과 1학년)1.6
P. 300

void LCD_fix (int lin, int width, char c)  //one gulza, ( down move, right move, text )
             {
             unsigned short * code = &ASCII_Table[(c-=32) * 24];
             int cou_v =width;
             int cou_h =lin;
             int i;
             int j;


                     for (j=0; j<=23; j++) //dot 24 height
                     {
                     CS_reset;
                     wr_cmd(0x22);
                     for (i=15; i>=0; i--) //dot 16 width, auto cousor
                             {


                             if ((code[j] & (1<<i))!=0)
                             textcolor ();
                             else backcolor ();
                             }
                     cou_h ++;
                     cousor (cou_h, cou_v);
                     CS_set;
                     }


             }
             void  extLCD (int lin, char * c) // one line, display it
             {
             int g=320-16;
             cousor (lin,g); //play line - lock


             while (*c!=0) //20 gulza
                     {
                     int i=0;
                     LCD_fix (lin, g, *c);
                     g-=16;
                     c++;
                     i++;
                     if(i>10) break;
                     }


             }



                                                         -  293  -
   295   296   297   298   299   300   301   302   303   304   305