#include<LiquidCrystal_I2C.h>
LiquidCrystal_I2C LCD (0x27,16, 2);
bool stav=true;
String a="teplota";
String b="vlhkos";
String c="125.5" ;
int d=90 ;
char percento="%";
char stupen="°C";
unsigned long previousmillis=0;
byte customChar1[] = {
B01010,
B01001,
B11100,
B01000,
B01000,
B01000,
B01001,
B00110
};
byte customChar2[] = {
0b11000,
0b11000,
0b00111,
0b01000,
0b01000,
0b01000,
0b01000,
0b00111
};
byte customChar3[] = {
0b11000,
0b11001,
0b00010,
0b00100,
0b01000,
0b10011,
0b00011,
0b00000
};
void setup() {
Serial.begin(115200);
LCD.init();
LCD.backlight();
LCD.createChar(0, customChar1);
LCD.createChar(1, customChar2);
LCD.createChar(2, customChar3);
}
void loop() {
LCD.setCursor(0,0);
LCD.print(a );
LCD.setCursor(0,1);
LCD.print(b );
LCD.write(0);
LCD.setCursor(10, 0);
LCD.print(c );
LCD.write(1);
LCD.setCursor(13,1);
LCD.print(d );
LCD.write(2);
}