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

void  XY_Coordinate(unsigned  int  X,unsigned  int  Y)
                 {
                     LCD_CmdWrite(0x46);

                     LCD_DataWrite(X&0x00FF);
                     LCD_CmdWrite(0x47);
                     LCD_DataWrite(X>>8);

                     LCD_CmdWrite(0x48);
                     LCD_DataWrite(Y&0x00FF);

                     LCD_CmdWrite(0x49);
                     LCD_DataWrite(Y>>8);
                 }



                 void  Text_color(unsigned  int  color)
                 {
                     LCD_CmdWrite(0x63);
                     LCD_DataWrite((color&0xf800)>>11);

                     LCD_CmdWrite(0x64);

                     LCD_DataWrite((color&0x07e0)>>5);

                     LCD_CmdWrite(0x65);
                     LCD_DataWrite((color&0x001f));


                 }
                 void  LcdClear(unsigned  int  color)
                 {
                     Text_color(color);
                     Active_Window(0,0,800,479);

                     LCD_CmdWrite(0x90);
                     LCD_DataWrite(0xB0);
                     LCD_CmdWrite(0x01);
                     LCD_DataWrite(0x80);

                 }
                 void  ClearScreen(char  area)
                 {
                    char  val = 0x80;




                                                         -  627  -
   629   630   631   632   633   634   635   636   637   638   639