#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 10, 9, 8, 7);
uint8_t c1[8]={ 0x00,0x00,0x06,0x16,0x1E,0x06,0x06,0x1F};
uint8_t c2[8]={ 0x05, 0x05, 0x06, 0x16, 0x1E, 0x06, 0x06, 0x1F};
uint8_t c3 [8]={0x07,0x07,0x16,0x1F,0x0E,0x02,0x03,0x00};
uint8_t c4[8]={ 0x00, 0x00, 0x0A, 0x00, 0x11, 0x0E, 0x00, 0x00};
uint8_t c5[8]={ 0x0E, 0x0E, 0x0E, 0x04, 0x0E, 0x15, 0x04, 0x0A};
uint8_t c6[8]={0x00, 0x04,0x02,0x1F,0x02,0x04,0x00,0x0};
uint8_t c7[8]={0x00, 0x04,0x02,0x1F,0x02,0x04,0x00,0x0};
uint8_t c8[8]={0x00, 0x04,0x02,0x1F,0x02,0x04,0x00,0x0};
void setup() {
// put your setup code here, to run once:
lcd.begin(16,2);
lcd.createChar(0, c1);
lcd.createChar(1, c2);
lcd.createChar(2, c3);
lcd.createChar(3, c4);
lcd.createChar(4, c5);
lcd.createChar(5, c6);
lcd.createChar(6, c7);
lcd.createChar(7, c8);
lcd.home();
lcd.print("pabloooo");
lcd.setCursor(0,1);
lcd.print("SIUUUUUUU");
delay(1000);
}
void loop() {
// put your main code here, to run repeatedly:
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("caracteres:");
for(int i = 0 ; i < 8 ; i++){
for(int j = 0 ; j < 16 ; j++){
lcd.setCursor(j , 1);
lcd.write(i);
delay(200);
lcd.setCursor(0, 1);
lcd.print(" ");
delay(5);
}
}
delay(1); // this speeds up the simulation
}