// |———————————————————————————————————————————————————————|
// | made by Arduino_uno_guy 11/13/2019 |
// | https://create.arduino.cc/projecthub/arduino_uno_guy|
// |———————————————————————————————————————————————————————|
byte Bell[] = {
B00100,
B01110,
B01110,
B01110,
B11111,
B00000,
B00100,
B00000
};
#include <LiquidCrystal_I2C.h>
//#include Wire.h
//initialize the liquid crystal library
//the first parameter is the I2C address
//the second parameter is how many rows are on your screen
//the third parameter is how many columns are on your screen
LiquidCrystal_I2C lcd(0x27, 16, 4);
void setup() {
//initialize lcd screen
lcd.init();
// turn on the backlight
lcd.backlight();
lcd.createChar(1,Bell);
}
void loop() {
// tell the screen to write on the top row
lcd.setCursor(0,0);
// tell the screen to write “hello, from” on the top row
lcd.print("Hello, From");
// tell the screen to write on the bottom row
lcd.setCursor(0,1);
// tell the screen to write “Arduino_uno_guy” on the bottom row
// you can change whats in the quotes to be what you want it to be!
lcd.println("Arduino_uno_guy");
lcd.setCursor(0,2);
lcd.println("---------------");
lcd.setCursor(0,3);
lcd.write(byte(1));
}