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

Ⅳ.  CodeVision  Source  Code




                      delay_ms(1000);
                   lift_down();
                   lcd = 1;
              }


              void  PARK_B3()             //Blue  3층 주차함수
              {
                   LCD_Input(status[place  -  1]);
                   lift_up(4);
                      delay_ms(1000);
                   B3_out();
                      delay_ms(1000);
                   lift_down();
                      delay_ms(1000);
                   open();
                      delay_ms(1000);
                   EnterOrExit();
                   close();
                   lift_up(4);
                      delay_ms(1000);
                   B3_in();
                      delay_ms(1000);
                   lift_down();
                   lcd = 1;
              }


              void  main(void)
              {
                   int reset =  0;
                   DDRA=0xff;             //relay signal
                   PORTA=0x00;
                   DDRB=0x40;             //sensor  signal
                   DDRD=0x00;             //micro switch
                   DDRE=0x00;             //switch
                   DDRF=0x0f;              //motor
                   PORTF=0xff;



                   UCSR0A=0x00;
                   UCSR0B=0x98;
                   UCSR0C=0x06;


                                                                                               정보통신기기과
                                                         -  769  -
   771   772   773   774   775   776   777   778   779   780   781