//YWROBOT
//Compatible with the Arduino IDE 1.0
//Library version:1.1
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,20,4); // set the LCD address to 0x27 for a 16 chars and 2 line display
int stOdpiranj = 0;
void setup()
{
lcd.init(); // initialize the lcd
lcd.backlight();
}
void loop()
{
lcd.noBacklight();
lcd.clear(); // clear display
lcd.setCursor(0, 0); // move cursor to (0, 0)
lcd.print("Kos za odpadke"); // print message at (0, 0)
lcd.setCursor(0, 1); // move cursor to (2, 1)
lcd.print("Tristan Vengust"); // print message at (2, 1)
delay(2000); // display the above for two seconds
lcd.backlight();
lcd.clear(); // clear display
lcd.setCursor(0, 0); // move cursor to (3, 0)
lcd.print("Pokrov odprt:"); // print message at (3, 0)
lcd.setCursor(0, 1); // move cursor to (0, 1)
lcd.print(String(stOdpiranj) + " krat."); // print message at (0, 1)
stOdpiranj++;
delay(2000); // display the above for two seconds
}