#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27,20,4); //initializing LCD (address, width, height)
void setup() {
lcd.init();
lcd.backlight();
uint8_t tree[8] = {
0b00000,
0b01000,
0b01000,
0b01000,
0b01100,
0b01100,
0b11100,
0b11100,
};
lcd.createChar(3,tree);
uint8_t chare[8] = {
0b00000,
0b01010,
0b11111,
0b11111,
0b01110,
0b00100,
0b00000,
0b00000,
};
lcd.createChar(4,chare);
};
void move_tree(){
lcd.setCursor(1,1);
lcd.write(4);
for (int i=16; i > 0; i--)
{
lcd.setCursor(i,1);
lcd.write(3);
delay(250);
lcd.setCursor(i,1);
lcd.print(" ");
}
}
// put your setup code here, to run once:
void loop() {
//
move_tree();
// put your main code here, to run repeatedly:
}