#include <LiquidCrystal.h>
LiquidCrystal lcd(12,11,10,9,8,7);
void setup() {
// put your setup code here, to run once:
lcd.begin(16,2);
}
int counter = 10;
String str_beseda = "Besedilo";
char* beseda = "JANEZ";
void loop() {
// put your main code here, to run repeatedly:
tekstPrint(beseda); //klic funkcije tekstPRint
steviloPrint(counter);
}
void tekstPrint(char* tekst){
lcd.setCursor(0,1); //prvi stolpec,druga vrstica
lcd.print(tekst);
}
void steviloPrint(int x){
lcd.setCursor(0,0);
lcd.print(x);
}