LCD ProgressBar (visible numbers instead of squares)

I will look further to fix that error message and keeping "write" instead of "print".

Post the exact, complete error message. A simple cast may be all that is needed:

   lcd.write((byte)1);