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

for(wid=0; wid<320; wid++)
                     {
                     wr_dat (back);//all fixel
                     }
             }
             CS_set;
             }
             void GLCD_drawChar(unsigned int x, unsigned int y, unsigned short *c) {
                                             //사용자  함수  1(총  개수  출력용)
               unsigned int index = 0;
               int  i = 0;
               unsigned int Xaddress = 0;

               Xaddress = x;
               LCD_SetCursor(Xaddress,y);


               for(index = 0; index < 24; index++)
               {
                     Clr_Cs;
                 wr_cmd(0x22);              /* Prepare to write GRAM */
                 for(i = 15; i >= 0; i--)
             //    for(i = 0; i < 16; i++)
                 {
                   if((c[index] & (1 << i)) == 0x00) {
                     wr_dat(BackColor);
                   } else {
                     wr_dat(TextColor);
                   }
                 }
                     Set_Cs;
                 Xaddress++;
               LCD_SetCursor(Xaddress,y);
               }
             }
             void GLCD_drawChar1(unsigned int x, unsigned int y, unsigned short *c) {
                                             //사용자  함수  2(총  가격  출력용)
               unsigned int index = 0;
               int  i = 0;
               unsigned int Xaddress = 0;

               Xaddress = x;



                                                         -  291  -
   293   294   295   296   297   298   299   300   301   302   303