#include <LiquidCrystal.h>
#include <Keypad.h>
#define rs 12
#define enable 11
#define d4 10
#define d5 9
#define d6 8
#define d7 7
LiquidCrystal lcd(rs, enable, d4, d5, d6, d7);
const int ROWS = 4;
const int COL = 3;
const int Keyboard[ROWS][COL]={
{'1','2','3'},
{'4','5','6'},
{'7','8','9'},
{'*','0','3'},
};
uint8_t colPins[COL]={2, A4, A5};
uint8_t rowPins[ROWS]={6,5,4,3};
Keypad keypad=Keypad(makeKeymap(Keyboard),rowPins,colPins,ROWS, COL);
byte caraFeliz[8] = {
0b00000,
0b01010,
0b00000,
0b00100,
0b00000,
0b10001,
0b01110,
0b00000
};
void setup() {
// put your setup code here, to run once:
lcd.begin(16, 2);
lcd.print("Que pedos");
lcd.createChar(0, caraFeliz);
//lcd.createChar(1,figura);
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
char key=keypad.getKey();
if(Key !=NO_KEY){
Serial.println(Key);
}
int columna = 0;
int fila = 0;
lcd.setCursor(5,1);
lcd.write(byte(0))
lcd.setCursor(6, 1);
lcd.setCursor
}