#include <ozone.h>
#include <stdio.h>
#include <stdlib.h> //　使用亂數rand()的標頭檔
#include <SoftwareSerial.h>//藍芽
LCD2X16A myLCD(0);	// 模組宣告, Module ID = 0

char breakfast[10][15] = {"Pancake", "Milk", "Tuna", "Sandwich", "Gyoza", "Gruel", "Toast", "Muffin", "Bread,Ham"};
char lunch[10][15]={"Hot Pot","Noodles","Lunch box","ShuDoFu","pizza","spaghetti","KFC","dumpling","McDonald's","Gruel"};
char dinner[10][15]={"Hot Pot","Noodles","Lunch box","ShuDoFu","pizza","spaghetti","KFC","dumpling","McDonald's","Gruel"};
int Num_breakfast = 10;

char bluetooth;
void setup()
{
   Serial.begin(57600);
   Serial.write("AT+BAUD7");///??
   myLCD.BacklightOn(0);
}

void loop()
{
  //myLCD.Display(a);
  int pick = random(Num_breakfast);
  char* msg = breakfast[pick];
  char* msg1 = breakfast[pick];
  char* msg2 = breakfast[pick];
  myLCD.Display("What to eat ?");
  delay(2000);
  myLCD.Clear();
  if(Serial.available()) //　接收藍芽數據
    {
      myLCD.Display("Connection");
      bluetooth = Serial.read();
      switch(bluetooth)
        {
          case 'a'://早餐
             myLCD.Display(msg);
             break;
          case 'b'://午餐
             myLCD.Display(msg1);
             break;
          case 'c'://晚餐
             myLCD.Display(msg2);
             break;
        }
    }
}