#include <LiquidCrystal_I2C.h>
#define I2C_ADDR 0x27
#define LCD_COLUMNS 16
#define LCD_LINES 2
LiquidCrystal_I2C lcd(I2C_ADDR, LCD_COLUMNS, LCD_LINES);
uint8_t smile[8] = {
B00000,
B00000,
B01010,
B00000,
B01010,
B01110,
B00000,
B00000
};
uint8_t heart[8] = {
0b00000,
0b01010,
0b11111,
0b11111,
0b11111,
0b01110,
0b00100,
0b00000,
};
void setup() {
// Init
lcd.init();
lcd.backlight();
// Print something
lcd.setCursor(1,0);
lcd.print("Hello, world!");
lcd.setCursor(1,1);
lcd.print("Test Msg!");
delay(1000);
lcd.createChar(3, heart);
lcd.begin(16, 2);
lcd.print(" I \x03 Arduino");
}
void loop() {
}