#include <LiquidCrystal.h>
LiquidCrystal lcd(12,11,10,9,8,7);
char ch_imena[3][11]={
"Janez",
"Minka",
"Alenka"
};
void setup() {
lcd.begin(16,2); //16 stolpcev in 2 vrstici
}
void loop() {
int pot = analogRead(A0);
pot = map(pot, 0, 1023, 0, 3);
for(int x = 0; x < 9; x ++){
if(x==pot){
digitalWrite(x, LOW);
}
else{
digitalWrite(x, HIGH);
}
}
delay(100);
}
void tekstPrint(char * tekst, int y){
lcd.setCursor(0,0);
lcd.print(tekst);
lcd.setCursor(0,1);
lcd.print(y);
}