#include <Servo.h>
Servo rightservo, leftservo;
#define BUTTON_PIN 3
#define RED_LED_PIN 2
#define GREEN_LED_PIN 10
#define SWITCH_PIN 12
#define DIAL_PIN A0
#define RIGHTSERVO_PIN 9
#define LEFTSERVO_PIN 6
void setup() {
pinMode(3, INPUT);
pinMode(2, OUTPUT);
pinMode(10, OUTPUT);
pinMode(12, INPUT);
rightservo.attach(9);
leftservo.attach(6);
}
void loop() {
if (digitalRead(3) == LOW) {
digitalWrite(2, HIGH);
} else {
digitalWrite(2, LOW);
}
}