// add LiquidCrystal Lib
#include <LiquidCrystal.h>
const int rs=12, en=11, d4=5, d5=4, d6=3, d7=2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7); //LiquidCrystal lcd is a function of the datatype LiquidCrystal and lcd is the variable
// libraryFunctions variable
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
lcd.begin(16, 2); //16 columns, 2 rows
}
void loop() {
// put your main code here, to run repeatedly:
int a=10, b=5;
lcd.setCursor(0,0);
lcd.print(a);
lcd.print("+");
lcd.print(b);
lcd.print("=");
lcd.print(a+b);
lcd.setCursor(0,1);
lcd.print(a);
lcd.print("-");
lcd.print(b);
lcd.print("=");
lcd.print(a-b);
/*lcd.setCursor(0,0);
lcd.print("....Hello");
lcd.setCursor(7,1);
lcd.print("World....");
lcd.scrollDisplayRight();
delay(100);*/
}