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

{

                    int  hei,  wid;
                    cousor(0,0);
                    CS_reset;

                    wr_cmd  (0x22);         //rgb값을  넣으면  커서위  치  에  따라  도트가  찍히는거야.
                    for(hei=0;  hei<240;  hei++)      //horizenta
                    {
                            for(wid=0;  wid<320;  wid++)          //vertica
                            {

                                    wr_dat  (back);//all  fixel
                            }
                    }

                    CS_set;
            }


            void  window  ()

            {
            wr_reg  (0x50,0x00);//horizontal  start
            wr_reg  (0x51,0xEF);//horizontal  end,  0-239

            wr_reg  (0x52,0x00);//vertical  start
            wr_reg  (0x53,0x13F);//vertical  end,   0-319
            }



            void  LCD_fix  (int  lin,  int  width,  char  c)    //한글자씩  출력하는  함수.  (  down move, right
            move,  text  )
            {
            unsigned  short  *  code  =  &ASCII_Table[(c-=32)  *  24];

            /*      font.h  참조.  스페이스는  아스키코드  32번째이며  font.h  시작도  느낌표.  따라서  배열  0
            번지는  느낌표기에  -32를  붙여줌.
                    또한    글자  하나는  24개(0x0000  *  24)로  이루어져  있다.    이는  0x0000이  가로  한줄을
            의미하며  그것이  24개가  묶여  한  글자가  탄생함을  의미함.

            */
            int  cou_v  =width;
            int  cou_h  =lin;

            int  i;
            int  j;




                                                         -  533  -
   535   536   537   538   539   540   541   542   543   544   545