#include "Hardware.h"
#include "app.h"
#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C
lcd(0X27,16,2);
void setup()
{
setup_led();
setup_button();
lcd.init();
lcd.clear();
lcd.backlight();
}
void loop() {
// put your main code here, to run repeatedly:
lcd.clear();
lcd.print("Choose Option:");
lcd.setCursor(0,1);
lcd.print("1)Mem 2)Response");
while(1){
if ((BUTTON_PIN & (1<<BUTTON_RED))== 0){ //option 1
delay(10);
while ((BUTTON_PIN & (1<<BUTTON_RED))== 0);
execute_memory_game();
break;
}
else if ((BUTTON_PIN & (1<<BUTTON_BLUE)) == 0){ //option 2
delay(10);
while((BUTTON_PIN & (1<<BUTTON_BLUE)) == 0);
execute_response();
break;
}
}
}