//  This is the motor test code for Nano
//  2014.3
//  V 0.1
//  By Pepin

int E1 = 9;     //M1 Speed Control
int E2 = 10;    //M2 Speed Control
int M1 = 8;     //M1 Direction Control
int M2 = 11;    //M1 Direction Control
 
void setup(void) 
{ 
  int i;
  for(i=4;i<=7;i++)
    pinMode(i, OUTPUT);  
  Serial.begin(19200);      //Set Baud Rate
  Serial.println("Run keyboard control");
  digitalWrite(E1,LOW);   
  digitalWrite(E2,LOW);  
} 

void loop(void) 
{
  int a;//speed of M1
  int b;//speed if m2
  digitalWrite(E1,a); 
  digitalWrite(M1,LOW);    //High and Low determine the direction off the motor
  digitalWrite(E2,b);   
  digitalWrite(M2,LOW);
}
