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

Ⅳ.  CodeVision  Source  Code




                        case  'd':
                              i=4;
                        break;

                        case  'e':
                              i=5;
                        break;

                        case  'f':
                              i=6;
                        break;
                   }
                   return  i;

              }


              char  lcd_display(void)
              {
              char  comp[][9]={"1ECA1941","4ED61941","AA54D607","8EA81C41","AEAE1941","9E0B1941"};
                   char  result;
                   int i,  j;
                   int count=0;
                   int mode=7;
                      for(i=0;i<7;i++)
                   {
                        count=0;
                        for(j=0;j<8;j++)
                        {
                              if(data[j]==comp[i][j])
                                   count++;
                        }
                        if(count==8)
                        {
                              mode=i;
                              break;
                        }
                   }

                   lcd_gotoxy(0,1);
                   lcd_puts("                     ");
                   lcd_gotoxy(0,1);


                                                                                               정보통신기기과
                                                         -  777  -
   779   780   781   782   783   784   785   786   787   788   789