#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
char ch_imena[4][12] = {
"Mojca",
"Bogataš",
"My Boi Ian",
};
void setup() {
lcd.begin(16, 2);
}
void loop() {
for(int x = 0; x < 3; x++){
char* m = ch_imena[x];
tekstPrint(m, x);
delay(500);
}
}
void tekstPrint(String tekst, int stevilo){
lcd.setCursor(0, 0);
lcd.print(tekst);
lcd.setCursor(0, 1);
lcd.print(stevilo);
}