LCD library can't work Arduino Leonard

I use Arduino Leonard board and I included standard LiquidCrystal library for 4 bit display. Unfortunately, it can't show any message, e.g. "Hello world!". I tried several time, it doesn't work. can someone provide some hint? how to solve this problem. By the way, I use i2c LCD driver. it worked. so it isn't LCD display's problem.

// include the library code:
#include <LiquidCrystal.h>

// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(8, 9, 4, 5, 6, 7);

void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("hello, world!");
}

Right.

Before you go further, go and read the instructions for posting, so you can go back and mark up the code in your first submission properly and so in all future ones.

Next, so that we can see what you are attempting to do, provide a perfectly focused photograph of your set-up with all wires clearly visible as they terminate on the modules and show this as a link in the text, not an attachment.

I checked the pin I/O of Leonard and found some of pin I/O was damaged. e.g. pin 4, 5 and 6. Maybe it was cause by ESD damage or it was damaged when I got it. I have noticed some of pins work incorrectly. So I changed pin I/O from pin 4, 5, 6, 7 to pin 0, 1, 2, 3 for 4 bit display and it can display. But I have to buy a new one. :slight_smile: