#include <LiquidCrystal_I2C.h>
#include <Keypad.h>
#include <dht.h>
#include <RTClib.h>
#include "pitches.h"
int Green = 13;
int Red = 12;
int switch1 = A2;
int switch2 = A1;
int switch3 = A0;
int buzzer = A3;
dht DHT;
#define DHT22_PIN A15
RTC_DS1307 rtc;
char daysOfTheWeek[7][12] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"};
LiquidCrystal_I2C lcd(0x27, 20, 4);
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' }
};
uint8_t colPins[COLS] = { 26, 27, 28, 29 }; // Pins connected to C1, C2, C3, C4
uint8_t rowPins[ROWS] = { 22, 23, 24, 25 }; // Pins connected to R1, R2, R3, R4
Keypad keypad = Keypad(makeKeymap(keys), rowPins, colPins, ROWS, COLS);
void setup() {
// put your setup code here, to run once:
pinMode(Green, OUTPUT);
pinMode(Red, OUTPUT);
pinMode(switch1, INPUT);
pinMode(switch2, INPUT);
pinMode(switch3, INPUT);
digitalWrite(Green, HIGH);
lcd.init();
lcd.backlight();
lcd.begin (20, 4);
//NOT FINAL
DateTime now = rtc.now();
lcd.setCursor(0, 0);
lcd.println(daysOfTheWeek[now.dayOfTheWeek()]);
lcd.println(now.month(), DEC);
lcd.println('/');
lcd.println(now.day(), DEC);
lcd.println('/');
lcd.println(now.year(), DEC);
}
void loop() {
// put your main code here, to run repeatedly:
int alrmTime = digitalRead(switch1);
int alrmOn = digitalRead(switch2);
int alrmOff = digitalRead(switch3);
}