Code to drive the LCD displays