Pages: [1]   Go Down
Author Topic: Arduino Printing to LCD from Serial Port  (Read 310 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

France
Offline Offline
God Member
*****
Karma: 34
Posts: 987
Scientia potentia est.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello and welcome smiley

Show your code and we might be able to help smiley
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Gosport, UK
Offline Offline
Faraday Member
**
Karma: 21
Posts: 3113
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: