Hi,
I agree with the posts above. When I wrote a wait function it din't work too. But then I measured the timing of the wait function using an oszilloscope I saw that the timing was not correct. After we corrected this function the lcd works. To be independent of the compiler you should use assembler instead of c to realize the wait function.
greetings,
hqqh