#include <LCD_1602_RUS.h>
LCD_1602_RUS lcd(0x27, 16, 2);
//
byte customChar0[8] = {
B00000,
B00000,
B00001,
B00001,
B00011,
B00011,
B00011,
B00011
};
byte customChar1[8] = {
B00011,
B11111,
B11111,
B11111,
B11111,
B11111,
B11111,
B11111
};
byte customChar2[8] = {
B11000,
B11110,
B11110,
B11111,
B11111,
B11111,
B11111,
B11111
};
byte customChar3[8] = {
B00011,
B01111,
B01111,
B11111,
B11111,
B11111,
B11111,
B11111
};
byte customChar4[8] = {
B11000,
B11111,
B11111,
B11111,
B11111,
B11111,
B11111,
B11111
};
byte customChar5[8] = {
B00000,
B00000,
B10000,
B10000,
B11000,
B11000,
B11000,
B11000
};
byte customChar6[8] = {
B00001,
B00000,
B00000,
B00000,
B00000,
B00000,
B00000,
B00000
};
byte customChar7[8] = {
B11111,
B11111,
B11111,
B01111,
B00111,
B00011,
B00001,
B00000
};
byte customChar8[8] = {
B11111,
B11111,
B11111,
B11111,
B11111,
B11111,
B11111,
B11111
};
byte customChar9[8] = {
B11111,
B11111,
B11111,
B11111,
B11111,
B11111,
B11111,
B11111
};
byte customChar10[8] = {
B11111,
B11111,
B11111,
B11110,
B11100,
B11000,
B10000,
B00000
};
byte customChar11[8] = {
B10000,
B00000,
B00000,
B00000,
B00000,
B00000,
B00000,
B00000
};
void setup()
{
lcd.init();
lcd.backlight();
lcd.createChar(1, customChar0);
lcd.createChar(2, customChar1);
lcd.createChar(3, customChar2);
lcd.createChar(4, customChar3);
lcd.createChar(5, customChar4);
lcd.createChar(6, customChar5);
lcd.createChar(7, customChar6);
lcd.createChar(8, customChar7);
lcd.createChar(9, customChar8);
lcd.createChar(10, customChar9);
lcd.createChar(11, customChar10);
lcd.createChar(12, customChar11);
}
void loop(){
{
lcd.setCursor(0,0);
lcd.write(1);
lcd.setCursor(1,0);
lcd.write(2);
lcd.setCursor(2,0);
lcd.write(3);
lcd.setCursor(3,0);
lcd.write(4);
lcd.setCursor(4,0);
lcd.write(5);
lcd.setCursor(4,0);
lcd.write(6);
delay(1000);
}
{
lcd.setCursor(0,1);
lcd.write(7);
lcd.setCursor(1,1);
lcd.write(8);
lcd.setCursor(2,1);
lcd.write(9);
lcd.setCursor(3,1);
lcd.write(10);
lcd.setCursor(4,1);
lcd.write(11);
lcd.setCursor(5,1);
lcd.write(12);
delay(1000);
}
}