#include <Wire.h>
#include <LiquidCrystal_I2C.h>
#include <Keypad.h>
// Define the I2C LCD object
LiquidCrystal_I2C lcd(0x27, 20, 4); // I2C address may vary, adjust if necessary
// Define the keypad layout
const byte ROWS = 4;
const byte COLS = 4;
char keys[ROWS][COLS] = {
{'1', '2', '3', 'A'},
{'4', '5', '6', 'B'},
{'7', '8', '9', 'C'},
{'*', '0', '#', 'D'}
};
byte rowPins[ROWS] = {9, 8, 7, 6}; // Connect to the row pinouts of the keypad
byte colPins[COLS] = {5, 4, 3, 2}; // Connect to the column pinouts of the keypad
Keypad keypad = Keypad(makeKeymap(keys), rowPins, colPins, ROWS, COLS);
//Variables
int menuState = 0;
int selection = 0;
bool stopped = 0;
int resetPin = 12;
int awarePin = 13;
int outputPin = 11;
int inputPin = analogRead(A0);
void setup() {
lcd.init();
lcd.backlight();
}