Give the LCD at least a second of 'pause' before you try to write to it. Change the data_us and command_us (as described in the green book) to 2000 for command and about 200 for data (but not over 255, byte value for data_us).
If that doesn't work, play with the contrast voltages, vary it from ground to Vcc on the LCD, hold the LCD at crazy angles and see if you can see anything on it.
Bookmarks