Go Down

Topic: Arduino Printing to LCD from Serial Port (Read 401 times) previous topic - next topic

MaryMac

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?

guix

Hello and welcome :)

Show your code and we might be able to help :)

MaryMac

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);
}

dxw00d

Where are alignLEFT, alignRIGHT, hideTop and hideBot defined or updated?

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy