Peripheral myLCD As LCD4x20A @ 0 ' Set the module ID as 0 Sub Main() ' Main program myLCD.DisplayOn() ' Turn on the display. myLCD.SetBacklight(255) ' Set LCD brightness to the maximum value myLCD.Backlighton(0) ' Set the LCD backlight to be turned on constantly myLCD.Display("Hello Word!") ' Show the message ¡§Hello Word!¡¨ on the display Pause 3000 myLCD.RotateRight(1, 10) ' Rotate the message ¡§Hello Word!¡¨ from the left to the right Pause 5000 myLCD.RotateOff() ' Stop rotating the message ¡§Hello Word!¡¨ myLCD.Clear() ' Clear all the characters on the display ' Set the No. 0 user defined character to be composed of 4 horizontal lines on the 1st, 3rd, 5th, and 7th ' The number 31 is represented as 11111 in binary format, so the value of 31 represents all the indicators on the row will be turned on rows ' When this character is displayed, a pattern composed of four horizontal lines will be shown on the display myLCD.Customchar(0, 31, 0, 31, 0, 31, 0, 31,0) ' Show 8 repeated No. 0 user defined characters on the display myLCD.DisplayChar(0, 0, 0, 0, 0, 0, 0, 0) Pause 2000 ' Set No. 1 user defined character to be composed of 3 vertical lines on the 1st, 3rd and 5th ' The number 21 is represented as 10101 in binary format, so the indicators on the 1 columnsst, 3rd and 5th ' When this character is displayed, a pattern composed of three vertical lines will be shown on the display columns will be lit. myLCD.Customchar(1, 21, 21, 21, 21, 21, 21, 21,21) ' Show 8 repeated No. 1 user defined characters on the display myLCD.DisplayChar(1, 1, 1, 1, 1, 1, 1, 1) End Sub