// include the library code:
#include <LiquidCrystal.h>
// initialize the library by associating any needed LCD interface pin // with the arduino pin number it is connected to
const int rs = 10, en = 9, d4 = 2, d5 = 5, d6 = 4, d7 = 3;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
// Serial input variables
const byte numChars = 32;
char receivedChars[numChars];
boolean newData = false;
// Buttons PINs
int UP_BUTTON = 6;
int ENTER_BUTTON = 7;
int OK_BUTTON = 8;
// Menu
char *nas_menu[] = {"Info\0", "Backup\0"};
void setup() {
lcd.begin(16, 2); // 15 rows 2 columns
Serial.begin(9600);
pinMode(UP_BUTTON, INPUT_PULLUP);
}
void loop() {
lcd.noAutoscroll();
lcd.clear();
// lcd.setCursor(0, 0);
lcd.home();
lcd.print(nas_menu[0]);
delay(200);
// if ( digitalRead(UP_BUTTON) == 0 ) {
// Serial.println("Button read:");
// Serial.println(digitalRead(UP_BUTTON));
// }
}