#include <LiquidCrystal_I2C.h> // include the liabrary fir the LCD screen
LiquidCrystal_I2C lcd(0x27, 16, 2); // I2C address is 0x27, 16 colums, 2 rows
byte customChar [8]= {0b00000,
0b01010,
0b11111,
0b01110,
0b00100,
0b00000,
0b00000};
void setup() {
lcd.init(); // intializing the lcd screen
lcd.backlight(); // turn on the backlight
lcd.createChar(0, customChar); /* Create a custom character, it is stored in
in the 0 position
(you can make 0-7 characters)*/
lcd.setCursor (2,0); // move the cursor to (2,0)
lcd.print("Hello Class!");
lcd.setCursor (2,1); // move the cursor to second row
lcd.print("I ");
lcd.write((byte)0); // this will print custom character
lcd.print("Arduino. ");
}
void loop() {
// put your main code here, to run repeatedly:
}