#include <LiquidCrystal.h>
LiquidCrystal lcd(12,11,10,9,8,7);
char ch_imena[3][11]={
"Janez",
"Minka",
"Alenka"
};
void setup() {
// put your setup code here, to run once:
lcd.begin(16,2);
}
void loop() {
// put your main code here, to run repeatedly:
for(int x =0;x<3;x++){
lcd.clear();
char *m = ch_imena[x];
tekstPrint(m, x);
delay(500);
}
}
void tekstPrint(char *tekst,int y){
lcd.setCursor(0,0);
lcd.print(tekst);
lcd.setCursor(0,1);
lcd.print(y);
}