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

m y S e ria l.be gin (9 6 0 0 );


               p in Mo d e (o u t3 ,O U T P U T );
               p in Mo d e (o u t2 ,O U T P U T );                      //오 른 쪽 바 퀴
                 p in M o d e (o u t1,O U T P U T );


               p in Mo d e (trig P in _ m a in ,O U T P U T );
               p in Mo d e (e c h o P in _ m a in ,IN P U T );

               p in Mo d e (trig P in _ R ,O U T P U T );
               p in Mo d e (e c h o P in _ R ,IN P U T );


               p in Mo d e (trig P in _ L ,O U T P U T );
               p in Mo d e (e c h o P in _ L ,IN P U T );

              //  p in M o d e (trig P in _ B ,O U T P U T );
              //  p in M o d e (e c h o P in _ B ,IN P U T );

               w h ile  (!S e ria l) {}


                 S e ria l.p rin tln ("S ta rt!");
                 m y S e ria l.p rin tln ("S ta rt!");


             }





             v o id   lo o p ()  {
                 s w itc h (m y S e ria l.re a d ())    //1  전 진   2 후 진   3 좌 회 전   4 우 회 전   5 정 지   6 번 좌 후 진   7 번 우 후
             진
                 {
                    c a s e   '1':    //전 진
                    {
                     d ig ita lW rite (o u t3 ,L O W );
                     d ig ita lW rite (o u t2 ,L O W );
                     d ig ita lW rite (o u t1,H IG H );

                       m y S e ria l.p rin tln ("g o !");
                       S e ria l.p rin tln ("g o !");
                    }  b re a k ;
                    c a s e   '2 ':   //후 진
                    {
                     d ig ita lW rite (o u t3 ,L O W );
                     d ig ita lW rite (o u t2 ,H IG H );




                                                         -  449  -
   451   452   453   454   455   456   457   458   459   460   461