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

wr_reg(0x2F,  0x12EB);  //  RAM speed tuning

                            wr_reg(0x26, 0x7000); //  Internal Bandgap strength
                            wr_reg(0x20,  0xB0E3);  //  Internal  Vcom  strength
                            wr_reg(0x27, 0x0044); //  Internal Vcomh/VcomL timing

                            wr_reg(0x2E,  0x7E45);  //  VCOM  charge  sharing  time
                            //*************  Turn  On  display  ******************/
                            wr_reg(0x10,  0x0000);  //  Sleep  mode  off.
                            delay(8);  //  Wait  30mS
                            wr_reg(0x11, 0x6878);  // Entry mode  setup. 262K  type B,  take care  on

            the  data bus with  16it only
                            wr_reg(0x07,  0x0033);  //  Display  ON
                    }

            }
            void    colors  (unsigned  int  main,  unsigned  int  bgr)
            {
                    text  =  main;   //static 변수에 RGB값  대입.

                    back = bgr;         //static  변수에  RGB값 대입.
            }



            void  backcolor ()
            {
                    wr_dat  (back); //back변수의 값으로 도트  입력.
            }



            void  textcolor  ()
            {
                    wr_dat  (text);  //text변수의  값으로  도트  입력.

            }


            void    cousor  (int  lin,  int  gulza)
            {

                    wr_reg  (0x20,  lin);//세로  커서  입력,  ...총  0~239개의  도트가  존재.
                    wr_reg (0x21,  gulza);//가로  커서 입력, ...총 0~320개의  도트가 존재.
            }



            void    LCD_clear  (void)//LCD를  배경색으로  색칠.




                                                         -  532  -
   534   535   536   537   538   539   540   541   542   543   544