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

GLCD_displayChar(ln,  col-40,  N10);

                  GLCD_displayChar(ln,  col-60,  N1);
            }



            /*  --------  m1_left  --------  */
            void  m1_left(void)
            {
                /*  정회전  */
                for(i=0;i<50;i++)

                {
                    GPIO_Write(GPIOC,  0x0005);
                    Delay_ms(3600);



                    GPIO_Write(GPIOC,  0x0006);
                    Delay_ms(3600);



                    GPIO_Write(GPIOC,  0x000a);
                    Delay_ms(3600);


                    GPIO_Write(GPIOC,  0x0009);
                    Delay_ms(3600);
                }
                  motor_stop1();

            }


            /*  --------  m1_right(스텝모터)  --------  */
            void  m1_right(void)

            {
                  /*  역회전  */
                for(i=0;i<50;i++)
                {

                    GPIO_Write(GPIOC,  0x0009);
                    Delay_ms(3600);


                    GPIO_Write(GPIOC,  0x000a);
                    Delay_ms(3600);




                                                         -  888  -
   890   891   892   893   894   895   896   897   898   899   900