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

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

              }


              void img_struct_init3(struct img_struct *img)
              {
                img->img_h = 110;
                img->img_w = 110;

                img->img_str = IMG_bulb_on;
              }


              void img_struct_init4(struct img_struct *img)

              {
                img->img_h = 110;
                img->img_w = 110;
                img->img_str = IMG_bulb_on;
              }



              void img_struct_init5(struct img_struct *img)
              {
                img->img_h = 110;
                img->img_w = 110;

               img->img_str = IMG_gas_on;
              }

              void draw_img(unsigned short x, unsigned short y,struct img_struct a)//그림을 화면에
              그리는 함수
              {

                 unsigned long k=0,i,j;
                 set_bound(x,y,(x+a.img_w)-1,(y+a.img_h)-1);
                 for(i=0; i<a.img_h;i++)
                 {

                   for(j=0; j<a.img_w;j++)lcd_write_data(a.img_str[k++]);
                 }
              }






                                                         -  725  -
   727   728   729   730   731   732   733   734   735   736   737