#include <LiquidCrystal_I2C.h>
#include <Wire.h>
const int rohelineLed = 11;
const int punaneLed = 12;
const int kollaneLed = 10;
const int buttonPingreen = 7;
const int buttonPinyellow = 6;
const int buttonPinred = 5;
const int relayPin = 9;
LiquidCrystal_I2C lcd(0x27, 16, 2);
void showafterstartupmessage () {
lcd.print ("Vali sektsioon");
delay(1000);
lcd.clear()
lcd print ("Punane");
lcd.setCursor (0.0);
lcd print ("Roheline");
lcd.setCursor (0,1);
lcd print ("Kollane");
lcd.setCursor (0,2)
if (buttonPingreen)buttonState = (HIGH);
if (buttonPinred)buttonState = (HIGH);
if (buttonPinyellow)buttonState = (HIGH);
}
void chooseingsection() {
lcd.print ("Pealiin");
if buttonPingreen buttonStat
}
void setup() {
pinMode(rohelineLed, OUTPUT);
pinMode(punaneLed, OUTPUT);
pinMode(kollaneLed, OUTPUT);
pinMode(buttonPingreen, INPUT_PULLUP);
pinMode(buttonPinyellow, INPUT_PULLUP);
pinMode(buttonPinred, INPUT_PULLUP);
pinMode(relayPin, OUTPUT);
lcd.begin (16, 2);
lcd.print ("Tere tulemast!");
lcd.setCursor (0,1);
delay(5000);
lcd.clear ();
showafterstartupmessage ();
}
void loop() {
// put your main code here, to run repeatedly:
}