char keypressed; //Where the keys are stored it changes very often
char code[] = { '1', '2', '3', '4' }; //The default code, you can change it or make it a 'n' dig
char checkl[sizeof(code)]; //Where the new key is stored
#include <Wire.h>
#include <Keypad.h>
#include <Servo.h>
#include <EEPROM.h>
#include <LiquidCrystal I2C.h>
int Button = 10; //Push Button
const byte numRows = 4; //number of rows on the keypad
const byte numCols = 4; //number of columns on the keypad
char keymap[numRows][numCols] =
{ '1', '2', '3', 'A' },
{'4', '5', '6', 'B'),
{'7', '8', '9', 'C'),
{'*', '0', '#', 'D'}
};
char keypressed; //Where the keys are stored it changes very often
char code[] = { '1', '2', '3', '4' }; //The default code, you can change it or make it a 'n' dig
char checkl[sizeof(code)]; //Where the new key is stored
#include <Wire.h>
#include <Keypad.h>
#include <Servo.h>
#include <EEPROM.h>
#include <LiquidCrystal I2C.h>
int Button = 10; //Push Button
const byte numRows = 4; //number of rows on the keypad
const byte numCols = 4; //number of columns on the keypad
char keymap[numRows][numCols] =
{ '1', '2', '3', 'A' },
{'4', '5', '6', 'B'),
{'7', '8', '9', 'C'),
{'*', '0', '#', 'D'}
};
char keypressed; //Where the keys are stored it changes very often
char code[] = { '1', '2', '3', '4' }; //The default code, you can change it or make it a 'n' dig
char checkl[sizeof(code)]; //Where the new key is stored
It is easy to understand and has a good mixture between explaining important concepts and example-codes to get you going. So give it a try and report your opinion about this tutorial.