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

LCD_DataWrite(XR);
                     LCD_CmdWrite(0x3d);//HESW1
                     LCD_DataWrite(XR>>8);


                     LCD_CmdWrite(0x3a);//VSSW0
                     LCD_DataWrite(YT);
                     LCD_CmdWrite(0x3b);//VSSW1
                     LCD_DataWrite(YT>>8);


                     LCD_CmdWrite(0x3e);//VESW0
                     LCD_DataWrite(YB);
                     LCD_CmdWrite(0x3f);//VESW1
                     LCD_DataWrite(YB>>8);

                 }
                 void  Scroll_Offset(unsigned  int  X,unsigned  int  Y)
                 {

                     LCD_CmdWrite(0x24);//HOFS0
                     LCD_DataWrite(X);


                     LCD_CmdWrite(0x25);//HOFS1
                     LCD_DataWrite(X>>8);


                     LCD_CmdWrite(0x26);//VOFS0
                     LCD_DataWrite(Y);

                     LCD_CmdWrite(0x27);//VOFS1
                     LCD_DataWrite(Y>>8);
                 }

                 void  Graphic_Mode(void)
                 {
                     LCD_CmdWrite(0x40);//MWCR0
                     LCD_DataWrite(0x00);

                 }


                 void  Text_Mode(void)
                 {




                                                         -  629  -
   631   632   633   634   635   636   637   638   639   640   641