# include <LiquidCrystal_I2C.h>
# include <Wire.h>
LiquidCrystal_I2C lcd(0x27, 20, 4);
String home;
int b = 8;
int chore;
int q;
void setup() {
lcd.init();
lcd.backlight();
pinMode(b, INPUT_PULLUP);
Serial.begin(9600);
lcd.print(" Welcome to your");
lcd.setCursor(0,1);
lcd.print(" personal");
lcd.setCursor(0,2);
lcd.print(" homework planer");
Serial.println("Please type you first chore to do.");
delay(2000);
lcd.clear();
}
void loop() {
chore = 0;
if (Serial.available()){
home = Serial.readStringUntil('\n');
home.trim();
chore = 1;
}
if(chore == 1){
lcd.setCursor(0,0);
lcd.println("Chore has been added. ");
lcd.setCursor(0,0);
chore = 0;
lcd.setCursor(0,2);
lcd.print(home);
lcd.setCursor(0,2);
delay(1000);
lcd.clear();
lcd.println("In how many minutes");
lcd.setCursor(0,1);
lcd.println("would you like to");
lcd.setCursor(0,2);
lcd.print("do it?");
Serial.println("In how many minutes would you like to do it?");
if(Serial.available()){
q = Serial.read();
}
if(millis >= q){
Serial.println("Helllo");
}
}
delay(1);
}
// Arduino skeduler. i2c lcd tells you the things you need to do next.
//alarm rings until you press the button make a list if button us pressed
//take of the list and beep with the multi alarm.