Arduino Code
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
int e = 0;
//int a = 0;
void setup()
{
Serial.begin(9600);
lcd.begin(16, 2);
}
void loop()
{
if(Serial.available());
e = Serial.read();
if (e == 97) //a in ASCII is 97
{
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("FOOD");
lcd.setCursor(0, 1);
lcd.print("AT YOUR DOOR");
}
if (e == 98) //b in ASCII is 98
{
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("MANAGEMENT");
lcd.setCursor(0, 1);
lcd.print("AT YOUR DOOR");
}
if (e == 99)
{
lcd.clear();
lcd.setCursor(0, 0);
lcd.print("SECURITY");
lcd.setCursor(0, 1);
lcd.print("AT YOUR DOOR");
}
}