1

The code dont gives error, but not displays "Hello World"

#include <Wire.h> 
#include <LiquidCrystal_I2C.h>
// Set the LCD address to 0x27 for a 16 chars and 2 line display
LiquidCrystal_I2C lcd(0x27, 16, 2);
void setup() {
 // initialize the LCD
 lcd.begin();
 // Turn on the blacklight and print a message.
 lcd.backlight();
 lcd.print("Hello, world!");
}
void loop() {
}
dda
1,5951 gold badge12 silver badges17 bronze badges
asked Dec 13, 2017 at 15:48
1
  • Are you sure you have the same display as that library is designed for? Commented Dec 13, 2017 at 15:49

1 Answer 1

3

This can be due a lot of reasons, among:

Most common:

  • Backlight is set too low (there should be a small dial)
  • Circuit problem (recheck), and post it.
  • The I2C address is wrong, there are sketches to check it.

Less common:

  • Broken LCD
  • Broken Arduino
  • No power on Arduino (check LED)
answered Dec 13, 2017 at 15:50

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.