//YWROBOT
//Compatible with the Arduino IDE 1.0
//Library version:1.1
int b1=2;
int b2=3;
int counter=0;
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,20,4); // set the LCD address to 0x27 for a 16 chars and 2 line display
byte happy_face[] = {B11011,B00000,B01010,B00000,B10001,B01110,B00000,B00000};
byte regular_face[] = {B11011,B00000,B01010,B00000,B11111,B00000,B00000,B00000};
byte Sad_face[] = {B01010,B10001,B01010,B00000,B11111,B00000,B00000,B00000};
byte dumb_face[] = {B01010,B10001,B01000,B00010,B11111,B00000,B00000,B00000};
void setup()
{
lcd.init(); // initialize the lcd
lcd.init();
// Print a message to the LCD.
lcd.createChar(0, happy_face);
lcd.createChar(1, regular_face);
lcd.createChar(2, Sad_face);
lcd.createChar(3, dumb_face);
lcd.home();
lcd.backlight();
pinMode(b1,INPUT);
pinMode(b2,INPUT);
}
void loop()
{
lcd.setCursor(19,0);
lcd.write(0);
delay(500);
lcd.clear();
lcd.setCursor(19,0);
lcd.write(3);
delay(500);
}