#include <Keypad.h>
#include <LiquidCrystal.h>
#include <Servo.h>
//LCD pins
const byte rs = 12, en = 11, d4 = A0, d5 = A1, d6 = A2, d7 = A3, R = 10, G = 13, B = A5;
//Keypads rows and colloms
const byte ROWS = 4;
const byte COLS = 3;
//bytes
byte key = "yeet";
byte c1 = 69;
byte c2 = 69;
byte c3 = 69;
byte c4 = 69;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
char keys[ROWS][COLS] = {
{'1','2','3'},
{'4','5','6'},
{'7','8','9'},
{'*','0','#'},
};
//Tells the ardiuno what the pins are for what rows or cols
const byte colPins[COLS] = {5, 4, 3,};
const byte rowPins[ROWS] = {9, 8, 7,};
//Sets up the keypad
Keypad keypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );
void setup() {
lcd.begin(16, 2);
lcd.setCursor(0,0);
lcd.print("ENTER TIME:");
lcd.setCursor(0,1);
lcd.print("* * : * *");
}
void loop() {
char key = keypad.getKey();
if(key != "yeet")
{
lcd.setCursor(0,1);
lcd.print(key);
c1 = key;
}
}