Form feed/cursor home (Java) not working


New member
I have some Java (1.4.1) code to clear the LCD (SDK204-634), set the cursor to the home position, then print the date/time to the LCD:

while (true) {
   outputStream.write('\12'); // form feed
   outputStream.write('\1');  // cursor home

   outputStream.write((new Date()).toString().getBytes());

  try {
  } catch (InterruptedException(ex) {
The code compiles and runs, but never clears the LCD or resets the cursor to the home position.

What am I doing wrong?

(NOTE: This is a cross-post from the Technical Support forum)
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.