#include <LiquidCrystal.h>
LiquidCrystal lcd(12,11,10,9,8,7); //RS, E, D4 .... D7
int x = 10;
void setup() {
lcd.begin(16,2); //16 stolpcev in 2 vrstici
}
int counter = 10;
//String str_beseda = "Besedilo";
char * beseda = "JANEZ";
void loop() {
// put your main code here, to run repeatedly:
/*
lcd.setCursor(3,1);
lcd.print(millis()/100);*/
/*
lcd.setCursor(0,1);
lcd.print("Stevec: ");
lcd.setCursor(10,1);
lcd.print(millis()/100);
lcd.setCursor(0,0);
lcd.print("Primer: ");
lcd.setCursor(10,0);
lcd.print(x);*/
//tekstPrint("BESEDILO!!"); // klic funkcije tekstPrint
//tekstPrint(str_beseda);
tekstPrint(beseda);
steviloPrint(counter);
}
void tekstPrint(char *tekst) { // *tekst = kazalec (kaže na prvi znak v printu, npr. B)
//void tekstPrint(String tekst) {
lcd.setCursor(0,1);
lcd.print(tekst);
}
void steviloPrint(int x) {
lcd.setCursor(0,0);
lcd.print(x);
}