۲۵-آبان-۱۳۸۸, ۱۳:۰۱:۰۴
مهندس این برنامه رو تست کن :
کد php:
$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 Ss As String * 255 , S As String * 16
Dim B As Byte , C As Byte , A As Byte
Ss = "happy birthday to you i wish you will be happy - www.forum.iranled.com - A.N.T"
Do
B = Len(ss)
If B < 17 Then :
For A = 16 To 1 Step -1
S = Mid(ss , A , 1 ) : Locate 1 , A : Lcd S
Waitms 200
Next
Wait 1
For A = 1 To 16
Locate 1 , A : Lcd " "
Waitms 200
Next
Wait 1
Else :
S = Left(ss , 16)
For A = 15 To 1 Step -1
Locate 1 , A : Lcd S
Waitms 200
Next
C = B - 16
For A = 2 To C
S = Mid(ss , A , 16 ) : Locate 1 , 1 : Lcd S
Waitms 200
Next
For A = 16 To 1 Step -1
S = Right(ss , A) : Locate 1 , 1 : Lcd S ; " "
Waitms 200
Next
Locate 1 , 1 : Lcd " " : Wait 1
End If
Loop
End