Line 1: Line 1:
 +
<div class="col-md-12">
 +
      <div class="bs-example bs-example-tabs">
 +
        <ul id="myTab" class="nav nav-tabs nav-justified nav-tabs-primary" style="margin:0;">
 +
          <li class="active" data-toggle="tab">[[Nav_Tabs#Tutorial|Tutorial]]</li>
 +
          <li data-toggle="tab">[[Nav_Tabs#Schematic|Schematic]]</li>
 +
          <li data-toggle="tab">[[Nav_Tabs#Video|Video]]</li>
 +
          <li data-toggle="tab">[[Nav_Tabs#Downloads|Downloads]]</li>
 +
        </ul>
 +
      </div>
 +
      <div id="myTab" class="tab-content">
 +
        <div class="tab-pane active" id="Tutorial">
 +
          <p style="text-align:justify;">
 +
          Tutorial page
 +
          </p>
 +
          <p style="text-align:justify;">
 +
          </p>
 +
        </div>
  
#include<reg51.h>
+
 
#define Motors P2
+
        <div class="tab-pane" id="Schematic">
#define Switches P1
+
          <p style="text-align:justify;">page3</p>
#define Forward 0x05
+
          <p style="text-align:justify;">page 4</p>
#define Backward 0x0a
+
          <p style="text-align:justify;">page 5</p>
#define Left 0x06
+
        Schematic page
#define Right 0x09
+
        </div>
#define stop 0x00void
+
         <div class="tab-pane" id="Video">
main()
+
          <p style="text-align:justify;"> </p>
+
          <p style="text-align:justify;"></p>
unsigned char SwitchInput;  
+
          <p style="text-align:justify;"></p>
Switches = 0x0f; //Configure Switches  as Input   
+
        Video
Motors = 0X00; //Configure both Motors as Output. 
+
         </div>
while(1) 
+
        <div class="tab-pane" id="Downloads">
{  
+
          <p style="text-align:justify;"></p>
SwitchInput = (0x0f & Switches)//read switch status and mask lower byte.   
+
          <p style="text-align:justify;"></p>
switch(SwitchInput)
+
          Download
{  
+
         </div>
         case 1: Motors = Forward; break;
+
      </div>
        case 2: Motors = Backward; break;  
+
    </div>
        case 4: Motors = Left; break;  
+
        case 8: Motors = Right; break;  
+
         default: Motors =stop;
+
        
+
}
+
}
+

Revision as of 11:07, 19 September 2014

Tutorial page


page3

page 4

page 5

        Schematic page

        Video

         Download