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
-
Are you sure you have the same display as that library is designed for?Majenko– Majenko2017年12月13日 15:49:43 +00:00Commented Dec 13, 2017 at 15:49
1 Answer 1
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
lang-cpp