#include <LiquidCrystal.h>
LiquidCrystal lcd(12,11,10,9,8,7);    //RS, E, D4 .... D7

void setup() {
  lcd.begin(16,2);    //16 stolpcev in 2 vrstici
  pinMode(0, INPUT_PULLUP);
  pinMode(1, INPUT_PULLUP);
  pinMode(2, INPUT_PULLUP);
  pinMode(3, INPUT_PULLUP);
  randomSeed(analogRead(A0));
}

void loop() {
  static int counter= 0;
  int value = analogRead(A0);
  
  if(digitalRead(0) == LOW) counter++;
  lcd.setCursor(0,1);
  lcd.print("Count: ");
  lcd.print(counter);

  if(digitalRead(1) == LOW) counter--;
  lcd.setCursor(0,1);
  lcd.print("Count: ");
  lcd.print(counter);

  if(digitalRead(2) == LOW) counter = 0;
  lcd.setCursor(0,1);
  lcd.print("Count: ");
  lcd.print(counter);

  int a = 0;

  if(digitalRead(3) == LOW){
    a = random(0,10);
    lcd.setCursor(0,0);
    lcd.print("Random: ");
    lcd.print(a);
  }
  delay(300);
}
uno1:A5.2
uno1:A4.2
uno1:AREF
uno1:GND.1
uno1:13
uno1:12
uno1:11
uno1:10
uno1:9
uno1:8
uno1:7
uno1:6
uno1:5
uno1:4
uno1:3
uno1:2
uno1:1
uno1:0
uno1:IOREF
uno1:RESET
uno1:3.3V
uno1:5V
uno1:GND.2
uno1:GND.3
uno1:VIN
uno1:A0
uno1:A1
uno1:A2
uno1:A3
uno1:A4
uno1:A5
lcd1:VSS
lcd1:VDD
lcd1:V0
lcd1:RS
lcd1:RW
lcd1:E
lcd1:D0
lcd1:D1
lcd1:D2
lcd1:D3
lcd1:D4
lcd1:D5
lcd1:D6
lcd1:D7
lcd1:A
lcd1:K
r1:1
r1:2
btn1:1.l
btn1:2.l
btn1:1.r
btn1:2.r
btn2:1.l
btn2:2.l
btn2:1.r
btn2:2.r
btn3:1.l
btn3:2.l
btn3:1.r
btn3:2.r
btn4:1.l
btn4:2.l
btn4:1.r
btn4:2.r
gnd1:GND
gnd2:GND
gnd3:GND
gnd4:GND