16*2 lcd printing garbage

#1

I am using 16*2 lcd and a button.I wanted to print some characters on lcd but it is showing me garbage when I print it in void loop.
I am displaying hello world after initialization in setup.that is displaying fine.
I am struggling from 3 hrs can anyone say me the solution.

0 Likes

#2

I have faced this issue when I first started doing projects on arduino.
I think you have declared pins twice on different variables due to that it is acting weird.
and do clear lcd before printing anything.

0 Likes