lcd program problem

I think this would also go in displays but I don’t know
this is my code

#include <LiquidCrystal.h>
LiquidCrystal lcd (12, 11, 5, 4, 3, 2);

void setup() {

  lcd.begin(16, 2);
  lcd.print("hello, world!");

void loop() {

  lcd.setCursor(0, 1);
  lcd.print(millis() / 100);

but my lcd wont show anything it just stays blank

There can be two scenarios:

The first is that you could misconnect the cables.

And the second is that some of the cables do not work, so each cable should be tested one by one (it is very exhausting, I had to do that with all the cables I have so that no project goes wrong because of them) .

And if you can, send an image of the wiring you made.

Does your LCD include a contrast setting and pin? Sometimes the printing might actually be happening, but the contrast is effectively 0, i.e., the print and the background are the same. I believe contrast on many of those LCDs is set with a potentiometer to a voltage between supply and ground.

Fwiw, when I change your pins to suit my dfr0009 shield (being a shield, the pins are fixed), your code works for me.


Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?

Not the diagram you copied, but a diagram you draw by reverse engineering your project. Sometimes, drawing a circuit from your physical project helps you find your bugs.

A picture of a hand drawn circuit would be fine. (Sometimes preferable) Please no Fritzy images.

Tom... :)