Let us see how you connected everything from the chip to the display.
Try to adjust the background voltage, may be that is the problem!
Put a pause of 1 sec. between the declaration and your programm. Maybe the display was not yet setup.