// Create some variables that will contain our motor pins // so we can refer to them by name, instead of a number. int rightMotorPin = 12; int leftMotorPin = 13; void setup() { // Initialize our right and left motor pins as outputs pinMode(rightMotorPin, OUTPUT); pinMode(leftMotorPin, OUTPUT); } void loop() { // Now test our motors with the following code digitalWrite(rightMotorPin, HIGH); // turn the right motor on delay(500); // wait for half a second digitalWrite(leftMotorPin, HIGH); // turn the left motor on delay(500); // wait for half a second digitalWrite(rightMotorPin, LOW); // turn the right motor off delay(500); // wait for half a second digitalWrite(leftMotorPin, LOW); // turn the left motor off delay(500); // wait for half a second }