Hi, I have a problem with white blocks on a blue background LCD module. I have uploaded some code to my microcontroller and at first the row of blocks were black then I adjusted the contrast and they turned into white blocks.

Does anyone know what the problem might be? The ports are setup as the attached and the code doesnt return any errors.