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

/*  정회전  */

                    for(i=0;i<50;i++)
                 {
                     GPIO_Write(GPIOC,  0x0280);

                     Delay_ms(3600);


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



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


                       GPIO_Write(GPIOC,  0x0480);
                       Delay_ms(3600);
                    }
                 motor_stop3();

            }


            /*  --------  m3_right  --------  */

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

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


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

                       GPIO_Write(GPIOC,  0x0600);

                       Delay_ms(3600);


                       GPIO_Write(GPIOC,  0x0280);

                       Delay_ms(3600);
                    }




                                                         -  891  -
   893   894   895   896   897   898   899   900   901   902   903