Page 206 - C Programming
P. 206

/******motor2 stretch and shrink*******/


                                  else if(control=='9'||control==73)

                                    { outport(0x378,0x04);
                                      gotoxy(35,13); printf(" STRETCH ");

                                    }

                                  else if(control=='7'||control==71)
                                    { outport(0x378,0x08);
                                      gotoxy(35,13); printf(" SHRINK ");
                                    }

                                  /******motor3 left and right*******/
                                  else if(control=='4'||control==75)

                                    { outport(0x378,0x10);
                                      gotoxy(35,13); printf("TURN  LEFT");
                                    }

                                  else if(control=='6'||control==77)
                                    { outport(0x378,0x20);

                                      gotoxy(35,13); printf("TURN RIGHT");
                                    }
   201   202   203   204   205   206   207   208   209   210   211