پاسخ : کسی میتونه اشکال این برنامه رو به من بگه ؟ (بیسیک)
با تشکر از جناب ادیبان همشهری بنده و راهنمایی های ایشون .....
اینم برنامه تکمیل شده لذتش رو ببرید .....(قفل رمز با رمز پیش فرض 123) :wow:
Cls
Lcd "in the name of god"
Waitms 100
Cls
Dim A As Byte
Config Kbd = Portd
Config Portb = Output
Main:
Do
'Cls
A = Getkbd()
If A < 16 Then
Goto N1
Else
Goto Main
End If
N1:
Locate 1 , 1
Lcd A
If A = 1 Then Goto S1
Goto S5
Loop
'\\\\\\\\\\\\\\\\\\\\\\
S1:
A = Getkbd()
If A < 16 Then
Goto N2
Else
Goto S1
End If
N2:
Locate 1 , 2
Waitms 50
Lcd A
If A = 2 Then
Goto S2
Else
Goto S5
End If
'*******************************
S2:
A = Getkbd()
If A < 16 Then
Goto N3
Else
Goto S2
End If
N3:
Locate 1 , 3
Lcd A
If A = 3 Then
Goto S4
Else
Goto S5
End If
S4:
Set Portb.0
Lcd "correct"
Wait 2
Goto Main
S5:
Waitms 100
Locate 1 , 1
Lcd A
Goto L2
L2:
A = Getkbd()
If A < 16 Then
Goto L
Else
Goto L2
End If
L:
Waitms 100
Locate 1 , 2
Lcd A
Goto L3
L3:
A = Getkbd()
If A < 16 Then
Goto G
Else
Goto L3
End If
G:
Waitms 100
Locate 1 , 3
Lcd A
Waitms 100
Lcd "incorrect"
Waitms 200
Cls
Goto Main
فقط الان یه مشکلی دارم تو بسکام عدد ها رو که توی کیبردش می زنم جابه جا میشن ...(چون A B C D ) هم داره ....می خاستم ببنیم من اگه سخت افزار این مدار رو با کیبر 3*4 ببندم که مشکلی ایجاد نمی کنه ؟
با تشکر از جناب ادیبان همشهری بنده و راهنمایی های ایشون .....

اینم برنامه تکمیل شده لذتش رو ببرید .....(قفل رمز با رمز پیش فرض 123) :wow:
Cls
Lcd "in the name of god"
Waitms 100
Cls
Dim A As Byte
Config Kbd = Portd
Config Portb = Output
Main:
Do
'Cls
A = Getkbd()
If A < 16 Then
Goto N1
Else
Goto Main
End If
N1:
Locate 1 , 1
Lcd A
If A = 1 Then Goto S1
Goto S5
Loop
'\\\\\\\\\\\\\\\\\\\\\\
S1:
A = Getkbd()
If A < 16 Then
Goto N2
Else
Goto S1
End If
N2:
Locate 1 , 2
Waitms 50
Lcd A
If A = 2 Then
Goto S2
Else
Goto S5
End If
'*******************************
S2:
A = Getkbd()
If A < 16 Then
Goto N3
Else
Goto S2
End If
N3:
Locate 1 , 3
Lcd A
If A = 3 Then
Goto S4
Else
Goto S5
End If
S4:
Set Portb.0
Lcd "correct"
Wait 2
Goto Main
S5:
Waitms 100
Locate 1 , 1
Lcd A
Goto L2
L2:
A = Getkbd()
If A < 16 Then
Goto L
Else
Goto L2
End If
L:
Waitms 100
Locate 1 , 2
Lcd A
Goto L3
L3:
A = Getkbd()
If A < 16 Then
Goto G
Else
Goto L3
End If
G:
Waitms 100
Locate 1 , 3
Lcd A
Waitms 100
Lcd "incorrect"
Waitms 200
Cls
Goto Main
فقط الان یه مشکلی دارم تو بسکام عدد ها رو که توی کیبردش می زنم جابه جا میشن ...(چون A B C D ) هم داره ....می خاستم ببنیم من اگه سخت افزار این مدار رو با کیبر 3*4 ببندم که مشکلی ایجاد نمی کنه ؟
دیدگاه