I believe that your problem is here: lcd.write(0);
lcd.write(0);
Try using this: lcd.write(8);
lcd.write(8);
Don