You are on page 1of 1

int motorpin1 = 12; //define digital output pin no.

int motorpin2 = 13; //define digital output pin no.


void setup ()
{
pinMode(motorpin1,OUTPUT); //set pin 3 as output
pinMode(motorpin2,OUTPUT); // set pin 4 as output
Serial.begin(9600);
while (! Serial);
Serial.println("Speed 0 to 255");
}
void loop ()
{
digitalWrite(motorpin1,LOW);
digitalWrite(motorpin2,HIGH);
}

You might also like