#include <LiquidCrystal_I2C.h>
#include<Servo.h>
LiquidCrystal_I2C lcd(0x27, 16,2);
Servo ganteng;
int led1 = 4;
int led2 = 5;
void setup() {
// put your setup code here, to run once:
ganteng.attach(3);
lcd.begin(16,2);
lcd.backlight();
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
ganteng.write(90);
digitalWrite(led2, HIGH);
delay(5000);
digitalWrite(led2, LOW);
lcd.setCursor(5,0);
lcd.print("selamat");
lcd.setCursor(5,1);
lcd.print("jalan");
ganteng.write(0);
digitalWrite(led1, HIGH);
delay(3000);
digitalWrite(led1, LOW);
ganteng.write(90);
lcd.clear();
}