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

if(P10000==10)

                  {

                      P10000=0;

                      P1000=0;

                      P100=0;

                  }

              }



              void lcd_String(char flash str[])

              {

                  char flash *pStr = 0;

                  pStr = &str[0];

                  //&str[0](배열의 이름은 배열의 시작주소) str==&str[0]

                  while (*pStr) data_write(*pStr++);     // '/0' 이면 while 탈출

              }



              void LCD_display()
              {

                  instruction_write(0x80);
                  var(array_1);

                  instruction_write(0xC0);

                  var(array_2);
              }



              void clear()
              {

                  P10000=0;
                  P1000=0;

                  P100=0;






                                                         -  642  -
   644   645   646   647   648   649   650   651   652   653   654