#include <LiquidCrystal_I2C.h> // include the library for the LCD screen
LiquidCrystal_I2C lcd (0x27, 16, 2); // I2C address is 0x27, 16 columns, 2 rows
byte customChar [8] = { // start with 0b then the rest are the pixels, 0 is off, 1 is on
0b00000,
0b01010,
0b11111,
0b11111,
0b01110,
0b00100,
0b00000,
0b00000
};
void setup() {
lcd.init(); //initialize the lcd screen
lcd.backlight(); // turn on the backlight
lcd.createChar(0, customChar);
// create a custom character, it is stored in 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 the second row
lcd.print("I ");
lcd.write((byte)0); // this will print our custom character
lcd.print("Arduino.");
}
void loop(){
}