#include <Keypad.h>
#include <LiquidCrystal.h>
#include <Servo.h>
LiquidCrystal lcd(13,12,7,6,5,4);
/* Keypad setup */
const uint8_t ROWS = 4;
const uint8_t COLS = 4;
char keys[ROWS][COLS] = {
{ '1', '2', '3', 'A' },
{ '4', '5', '6', 'B' },
{ '7', '8', '9', 'C' },
{ '*', '0', '#', 'D' }
};
//char correctCode[5] = int(i);
//char enteredCode[5] = "";
uint8_t colPins[COLS] = { 17, 16, 15, 14 }; // Pins connected to C1, C2, C3, C4
uint8_t rowPins[ROWS] = { 21, 20, 19, 18 }; // Pins connected to R1, R2, R3, R4
Keypad keypad = Keypad(makeKeymap(keys), rowPins, colPins, ROWS, COLS);
// keypad pins: R1-R4 -> 21 - 18 \/ C1 - C2 -> 17 - 14
// lcd pins: a,VDD -> 5V \/ VSS,RW,k -> GND \/ RS -> 13 \/ R -> \/ D4-D7 -> 7-4
// LED pins: Red -> 10 \/ Green -> 11
// servoPINS: PWM -> 8
void setup() {
Serial.begin(9600);
pinMode(10, OUTPUT);
pinMode(11, OUTPUT);
lcd.begin(16,2);
lcd.clear();
/*lcd.setCursor(2,0);
String message = "Zmackni Play";
for (int i = 0; i < message.length(); i++) {
lcd.print(message[i]);
digitalWrite(11, LOW);
delay(200);
} */
}
void loop() {
}