// funkcija za izpis stringa in števila
#include <LiquidCrystal.h>
LiquidCrystal lcd(12,11,10,9,8,7); // RS E D4..D7
int x = 10;
void setup() {
lcd.begin(16,2); //št stolpcev, št vrstic
}
int counter = 10;
String str_beseda = "Besedilo";
void loop() {
tekstPrint(str_beseda);
steviloPrint(counter);
}
void tekstPrint(char *tekst){ //*tekst - KAZALEC
lcd.setCursor(0,1); //prvi stolpec, druga vrstica
lcd.print(tekst);
}
void steviloPrint(int x){
lcd.setCursor(0,0);
lcd.print(x);
}