LarryD:
Show us what you have done.
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
// constants won't change. They're used here to
// set pin numbers:
const int buttonPin_1 = 10; // the number of the pushbutton pin
const int buttonPin_2 = 9;
const int ledPin = 13; // the number of the LED pin
// variables will change:
int buttonState_1 = 0; // variable for reading the pushbutton status
int buttonState_2 = 0;
void setup() {
// initialize the LED pin as an output:
lcd.begin(20, 4);
pinMode(ledPin, OUTPUT);
// initialize the pushbutton pin as an input:
pinMode(buttonPin_1, INPUT);
digitalWrite(buttonPin_1,HIGH);
pinMode(buttonPin_2, INPUT);
digitalWrite(buttonPin_2,HIGH);
}
void loop(){
// read the state of the pushbutton value:
buttonState_1 = digitalRead(buttonPin_1);
buttonState_2 = digitalRead(buttonPin_2);
Mainmenu();
}
void Mainmenu()
{
lcd.setCursor(0,0);
lcd.print("EEE 351");
lcd.setCursor(0,1);
lcd.print("Advanced Laboratory");
lcd.setCursor(0,2);
lcd.print("March 2014");
return;
}