Help Please,
I am trying to get my Arduino to print out on an LCD screen attached to the Arduino but all it is doing is printing to the serial port. I want to be able to enter something in the serial port text box and have it print onto the LCD screen?
Hello and welcome
Show your code and we might be able to help
Sorry I forgot some of my code...
#include <LiquidCrystal.h>
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);
void setup() {
Serial.begin(9600);
lcd.begin(16, 2);
lcd.setCursor(0, 0);
}
void loop(){
//set text alignment to left as default
if( alignLEFT ) {
if (!hideTop) lcd.print("Date");
lcd.setCursor(0, 1);
if (!hideBot) lcd.print("Nov. 19th");
}
//set text alignment to the right
if( alignRIGHT ){
if (!hideTop) lcd.print(" Date");
lcd.setCursor(0, 1);
if (!hideBot)lcd.print(" Nov. 19th");
}
delay(3000);
lcd.clear();
lcd.setCursor(0, 0);
}
Where are alignLEFT, alignRIGHT, hideTop and hideBot defined or updated?