$regfile = "m16def.dat" : $crystal = 1000000
Config Lcdpin = Pin , Rs = Pinc.0 , Db4 = Pinc.4 , Db5 = Pinc.5 , Db6 = Pinc.6 , Db7 = Pinc.7 , E = Pinc.2
Config Lcd = 16 * 2 : Cursor Off : Cls
Dim S As String * 16 , Ss As String * 16
Dim A As Byte , D As String * 1 , M As Byte , B As Byte
S = " HAPPY BIRTHDAY "
Ss = "WWW.IRANLED.COM"
For A = 16 To 1 Step -1
D = Mid(s , A , 1 ) : Locate 1 , A : Lcd D
Waitms 200
Next
For a = 1 To 16
D = Mid(ss , A , 1 ) : Locate 2 , A : Lcd D
Waitms 200
Next
Wait 3
For A = 1 To 16
Locate 1 , A : Lcd " "
Waitms 200
Next
For A = 16 To 1 Step -1
Locate 2 , A : Lcd " "
Waitms 200
Next
Wait 3
End