Page 207 - C Programming
P. 207

/******motor4 up and down*******/


                                      else if(control=='8'||control==72)
                                        { outport(0x378,0x40);

                                          gotoxy(35,13); printf("TURN   UP");
                                        }

                                      else if(control=='2'||control==73)
                                        { outport(0x378,0x80);
                                          gotoxy(35,13); printf("TURN DOWN");

                                        }
                                      else

                                        { outport(0x378,0x00);
                                          gotoxy(35,13); printf("   STOP   ");
                                        }

                              }while(control!=27);
                              outport(0x378,0x00);
                          }
   202   203   204   205   206   207   208   209   210   211   212