// 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
}
void loop() {
tekstPrint("BESEDILO!");
steviloPrint(100);
}
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);
}