#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
byte sziv[] = {
B00000,
B00000,
B01010,
B11111,
B01110,
B00100,
B00000,
B00000
};
byte e_betu[] = {
B00010,
B00100,
B01110,
B10001,
B11111,
B10000,
B01110,
B00000
};
byte a_betu[] = {
B00010,
B00100,
B01110,
B00001,
B01111,
B10001,
B01111,
B00000
};
void setup() {
lcd.begin(16, 2);
lcd.createChar(1, sziv);
lcd.createChar(2, a_betu);
lcd.createChar(3, e_betu);
lcd.setCursor(0, 0);
lcd.print("I \x01 S\x02ndor P\x03ter");
delay(1000);
for (int i = 0; i < 16; i++) {
lcd.scrollDisplayLeft();
delay(100);
}
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("A poti \x03rt\x03ke:");
}
void loop() {
int pot = analogRead(A0);
lcd.setCursor(0, 1);
lcd.print(pot);
delay(20);
lcd.setCursor(0, 1);
lcd.print(" ");
}