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

//Signal  Setting

            #define  NFC_SIG  PIND&0x10
            #define  GAMEOVER_SIG_ON  PORTD|=0x80

            #define  GAMEOVER_SIG_OFF  PORTD&=(~0x80)



            //PLAY  Setting
            #define  PLAY_ON  nfc_flag=1

            #define  PLAY_OFF  nfc_flag=0



            //FND  Setting
            #define  FND_OFF  PORTF|=0xff



            //State  Setting

            #define  INIT  0
            #define  READY  1

            #define  START  2
            #define  CHECK  3

            #define  WAIT  4
            #define  FINISH  5



            //Sensor  Setting

            #define  IR1  PINC&0x01
            #define  IR2  PINC&0x02

            #define  IR3  PINC&0x04
            #define  UP_LIMIT  PINC&0x08

            #define  DOWN_LIMIT  PINC&0x10
            #define  LEFT_LIMIT  PINC&0x20

            #define  RIGHT_LIMIT  PINC&0x40



            #include  <mega128.h>
            #include  <delay.h>

            #include  <lcd.h>






                                                         -  166  -
   168   169   170   171   172   173   174   175   176   177   178