#include <Servo.h>
#include <LiquidCrystal.h>
int servoPin = 9;
int lcdRSPin = 12;
int lcdEPin = 11;
int lcdD4Pin = 5;
int lcdD5Pin = 4;
int lcdD6Pin = 3;
int lcdD7Pin = 2;
Servo myServo;
LiquidCrystal lcd(lcdRSPin, lcdEPin, lcdD4Pin, lcdD5Pin, lcdD6Pin, lcdD7Pin);
void setup() {
// put your setup code here, to run once:
myServo.attach(servoPin);
lcd.begin(16, 2);
}
void loop() {
// put your main code here, to run repeatedly:
lcd.print("Starting motor");
delay(250);
myServo.write(0);
lcd.setCursor(0,0);
delay(1000);
lcd.print("Resetting motor");
delay(250);
//lcd.print(millis()/1000);
myServo.write(180);
lcd.setCursor(0,0);
delay(1000);
}