code given below is a working code for serial enabled 16X2 LCD. but i dont see any clarification in code that is made for LCD is 16X2. i dont understand 2 lines in the code. is there any other way to make it happen without using NSS. if yes then please explain wht is it ? and if no than please explain whats the importance of NSS.
is there any other way i can define which pin my LCD is connected to ?
#include <SoftwareSerial.h>
#include <SerLCD.h>
SoftwareSerial NSS(0,2); // i dont understand
SerLCD lcd(NSS); //i dont understand
void setup()
{
Serial.begin(9600);
NSS.begin(9600);
}
void loop()
{
lcd.clear();
lcd.print("hello")
lcd.setPosition(2,5); //write in second line after 5 blank characters.
lcd.print("-SAMARTH");
delay(5000);
}