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

lcd_write(0x004e,0);lcd_write_reg(0x0022);


                 SET_CS;



              }


              void set_bound(unsigned int x1,unsigned int y1,unsigned int x2,unsigned int y2)
              {
                 lcd_write(0x0044,(x2<<8)+x1);

                 lcd_write(0x0045,y1);
                 lcd_write(0x0046,y2);
                 lcd_write(0x004e,x1);
                 lcd_write(0x004f,y1);

                 lcd_write_reg(0x0022);
              }


              void LCD_Clear(unsigned int Color)
              {
                  unsigned long i,j;

                  set_bound(0,0,LCD_W-1,LCD_H-1);
                  for(i=0;i<LCD_W;i++)
                  {
                    for (j=0;j<LCD_H;j++)

                      lcd_write_data(Color);
                  }
              }


              void img_struct_init1(struct img_struct *img)
              {

                img->img_h = 110;
                img->img_w = 110;
                img->img_str = IMG_fan_on;



              }


              void img_struct_init2(struct img_struct *img)
              {




                                                         -  724  -
   726   727   728   729   730   731   732   733   734   735   736