|
楼主 |
发表于 2007-8-7 01:01:42
|
显示全部楼层
'=========================中森翔太2000-2007===========================
' ナカモロシヨゥタ
' 劳动成果 请勿抄袭
$crystal = 7372800
$baud = 115200
$regfile = "m32def.dat"
Dim A As String * 30 , V As String * 30 , F As Bit
Config Lcdpin = Pin , Db4 = Portc.2 , Db5 = Portc.3 , Db6 = Portc.4 , Db7 = Portc.5 , E = Portc.1 , Rs = Portc.0
Config Lcd = 16 * 4
'Config Graphlcd = 240 * 128 , Dataport = Portc , Controlport = Porta , Ce = 4 , Cd = 3 , Wr = 6 , Rd = 5 , Reset = 2 , Fs = 7 , Mode = 6
'Cursor Off
Waitms 500
F = 0
A = " 中森翔太"
Waitms 2000
Cls
Gosub Sdoux
End
Sdoux:
Do
Input A
If A = "unfresh" Then
A = ""
F = 1
End If
If A = "keep fresh" Then
A = ""
F = 0
End If
If A = "locate 2" Then
Locate 3 , 1
A = ""
End If
If A = "locate 1" Then
Locate 1 , 1
A = ""
End If
If A = "locate 3" Then
Locate 1 , 9
A = ""
End If
If A = "locate 4" Then
Locate 3 , 9
A = ""
End If
If A = "cls" Then
Cls
A = ""
End If
If A = V Then Gosub Sdoux
If A <> "" Then
If V <> A Then
If F = 0 Then Cls
Locate 1 , 1 : Lcd A
End If
V = A
A = ""
End If
Loop
End |
|