Kód: Egész kijelölése
#include <LiquidCrystal.h>
#include <Time.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(22,23,24,25,26,27);
byte a1[8] = {B10,B100,B1110,B1,B1111,B10001,B1111};
byte e1[8] = {B10,B100,B1110,B10001,B11111,B10000,B1110};
byte i1[8] = {B10,B100,B0,B1110,B100,B100,B1110};
byte o1[8] = {B100,B100,B0,B1110,B10001,B10001,B1110};
byte o2[8] = {B1010,B0,B1110,B10001,B10001,B10001,B1110};
byte o3[8] = {B1010,B1010,B0,B1110,B10001,B10001,B1110};
byte u1[8] = {B10,B100,B10001,B10001,B10001,B10011,B1101};
byte u2[8] = {B1010,B0,B0,B10001,B10001,B10011,B1101};
byte u3[8] = {B1010,B1010,B0,B10001,B10001,B10011,B1101};
time_t t = now();
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(20,4);
lcd.createChar(0, a1);
lcd.createChar(1, e1);
lcd.createChar(2, i1);
lcd.createChar(3, o1);
lcd.createChar(4, o3);
lcd.createChar(5, u1);
lcd.createChar(6, u2);
lcd.createChar(7, u3);
lcd.setCursor(0,0);
lcd.write("H");
lcd.write(4);
lcd.write("m");
lcd.write(1);
lcd.print("rs");
lcd.write(1);
lcd.print("klet: 20.5");
lcd.setCursor(0,1);
lcd.print("Id");
lcd.write(4);
lcd.write(": ");
setTime(18,28,0,21,10,2013);
}
void loop() {
lcd.setCursor(14,1);
lcd.print(hour(t));
lcd.write(":");
lcd.print(minute(t));
}