Go Down

Topic: "Hello, world!" doesn't work on my LCD(I2C) (Read 115 times) previous topic - next topic

alex35748954

Hi,
I just bought an LCD, and the hello world code is able to upload.
However, the result that it printed out is just an 'H'...
My teacher tried the hello world code on my LCD to see if there's a problem or not,
but the code that uploaded by his computer output correctly...
Any solution of this problem?
Or is it just the problem of my computer?

Code: [Select]

#include <Wire.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C lcd(0x27,16,2);  // set the LCD address to 0x27 for a 16 chars and 2 line display

void setup(){
  lcd.init();                      // initialize the lcd

  // Print a message to the LCD.
  lcd.backlight();
  lcd.print("Hello, world!");
}

void loop(){
}

Grumpy_Mike

It is just your computer. I would try reinstalling the IDE.

alex35748954

Should I try reinstall the same version IDE or the older one?

floresta

#3
May 24, 2016, 04:02 pm Last Edit: May 24, 2016, 04:04 pm by floresta
This problem has come up frequently, most recently on April 30.

Scroll down to the end of this thread: --> http://forum.arduino.cc/index.php?topic=397691.msg2735530

Don

alex35748954

Well, I think I just fixed it.
I changed my IDE version from 1.6.8 to 1.6.5 and...It Worked!! --three of my I2C libraries I downloaded
I think maybe it's because the library can't use in the 1.6.8 version...
Thanks!

floresta

Quote
I think maybe it's because the library can't use in the 1.6.8 version...
I think you didn't follow my link.

Don

hoyx3

I am also having a problem with my LCD display. Me and my teacher have gone over the wiring and it is fine. The program (hello, world) uploads, but nothing shows up on the display. What advice do you have for me? Does the type of board matter? (I am using a Arduino Mega 2560) Should I be using a Uno instead?

floresta

#7
May 24, 2016, 08:32 pm Last Edit: May 24, 2016, 08:33 pm by floresta
I am also having a problem with my LCD display. Me and my teacher have gone over the wiring and it is fine. The program (hello, world) uploads, but nothing shows up on the display. What advice do you have for me? Does the type of board matter? (I am using a Arduino Mega 2560) Should I be using a Uno instead?
You have just 'hijacked' this thread which is about a different problem.  Please read the instructions and then start a new thread of your own.

Don

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