//funkcija za izpis besedil, števil in znakov
#include <LiquidCrystal.h>
LiquidCrystal lcd(12,11,10,9,8,7);
byte hertz[8] = {
0b00000,
0b01010,
0b11111,
0b11111,
0b11111,
0b01110,
0b00100,
0b00000
};
void setup() {
// put your setup code here, to run once:
lcd.begin(16,2);
lcd.createChar(2,hertz);
}
void loop() {
// put your main code here, to run repeatedly:
lcd.setCursor(0,0);
lcd.write(2);
textPrint("Besedilo");
steviloPrint(10);
}
void textPrint(char text[]){ //(char *text) ali (String text)
lcd.setCursor(0,1);
lcd.print(text);
}
void steviloPrint(int x){
lcd.setCursor(14,1);
lcd.print(x);
}