#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 16, 2);
int ButtonPin = 2; // button pin number
void setup() {
// iniitalizing the LCD.
lcd.init();
lcd.backlight();
pinMode(ButtonPin, INPUT);// setting pin 2 as a digital input.
// declaring characters in the game
uint8_t man[8] = {
0b00000,
0b00000,
0b00000,
0b01010,
0b01010,
0b00100,
0b00100,
0b00000,
};
lcd.createChar(2, man);
uint8_t tree[8] = {
0b00000,
0b01110,
0b10001,
0b10101,
0b10001,
0b01110,
0b00000,
0b00000,
};
lcd.createChar(3, tree);
}
void loop() {
// put your main code here, to run repeatedly:
}