16x2 LCD - some text displaying, some not

... the code is rather simple ...

Show the code? Perhaps a photo or description of the wiring. Are you using a battery / power pack / USB?