// #include <LiquidCrystal_I2C.h>

// LiquidCrystal_I2C lcd(0x27,16,2);  // set the LCD address to 0x3F for a 16 chars and 2 line display

// void setup() { 
//   lcd.init();
//   lcd.clear();         
//   lcd.backlight();      // Make sure backlight is on
  
//   // Print a message on both lines of the LCD.
//   lcd.setCursor(2,0);   //Set cursor to character 2 on line 0
//   lcd.print("Hello world!");
  
//   lcd.setCursor(2,1);   //Move cursor to character 2 on line 1
//   lcd.print("LCD Tutorial");
// }

// void loop() {
// }
//=========================================================================
// Found Address: [39 (0x27)]

// #include <Wire.h>

// void setup() {
//   Serial.begin (9600);

//   // Leonardo: wait for serial port to connect
//   while (!Serial) 
//     {
//     }

//   Serial.println ();
//   Serial.println ("I2C scanner. Scanning ...");
//   byte count = 0;
  
//   Wire.begin();
//   for (byte i = 8; i < 120; i++)
//   {
//     Wire.beginTransmission (i);
//     if (Wire.endTransmission () == 0)
//       { 
//       Serial.print ("Found address: ");
//       Serial.print (i, DEC);
//       Serial.print (" (0x");
//       Serial.print (i, HEX);
//       Serial.println (")");
//       count++;
//       delay (1);  // maybe unneeded?
//       } // end of good response
//   } // end of for loop
//   Serial.println ("Done.");
//   Serial.print ("Found ");
//   Serial.print (count, DEC);
//   Serial.println (" device(s).");
// }  // end of setup

// void loop() {}
//=====================================================================
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,16,2);

// Make custom characters:
byte Heart[] = {
  B00000,
  B01010,
  B11111,
  B11111,
  B01110,
  B00100,
  B00000,
  B00000
};
byte Bell[] = {
  B00100,
  B01110,
  B01110,
  B01110,
  B11111,
  B00000,
  B00100,
  B00000
};


void setup() {
  // Specify the LCD's number of columns and rows:
  lcd.begin(16, 2);
  
  // Create new characters:
  lcd.createChar(0, Heart);
  lcd.createChar(2, Bell);
  
  // Clears the LCD screen:
  lcd.clear();
  // Print a message to the lcd:
  lcd.print("Custom Character");
}

void loop() {
  // Print all the custom characters:
  lcd.setCursor(0, 1);
  lcd.write(byte(0));
  lcd.setCursor(2, 1);
  lcd.write(byte(1));
}