4 bit LCD library and Hitachi HD44780 compatible display

dc42:
As floresta says, leaving the RW pin floating is asking for trouble. You need to connect it to ground.

RW is now connected to ground, same results