#include "lcd.h"
char customChar[] = {
0x04,
0x0E,
0x15,
0x1F,
0x1F,
0x11,
0x0E,
0x04
};
void setup() {
lcd_config();
lcd_write_byte('A', 1);
lcd_write_chr(1, 5, 'C');
lcd_write_str(2, 1, "BYE BYE GALERA");
for(int i = 0; i < 16; i++){
lcd_write_byte(0x01C,0); //Shift Right;byte,rs=0(cmd),res=1(data)
delay(300);
}
for(int i = 0; i < 16; i++){
lcd_write_byte(0x18,0); //Shift Left;byte,rs=0(cmd),res=1(data)
delay(300);
}
//Desenhar um monstrinho
lcd_write_byte(0x40,0);//Desloca o cursor para a cgram
for(int i = 0; i < sizeof(customChar); i++){
lcd_write_byte(customChar[i],1); //Desenha na CGRAM o monstrinho...
}
lcd_write_chr(1, 10, 0);
//delay(5000);
//lcd_write_byte(0x01, 0);
}
void loop() {
}