in 4 bit mode , both the command and data are sent in strings of 4 bits
so Mask the lower 4-bits , then send it to the port , and when enabled by another pin , lcd accepts the 4 bits and displays it .
next mask the upper 4 bits , send it to the port and enable it .
Do this for both command and data modes