کمک در برنامه زیر :
میخواهم بوسیله دو کلید دیگر در برنامه زیر سرعت رقص نور را کم یا زیاد کنم
$regfile = "m16def.dat"
$crystal = 1000000
'-----------------------------
Config Portd = Output : Config Porta = Output : Config Pinc.1 = Input : Config Pinc.2 = Input
Do
Debounce Pinc.1 , 1 , Main1
Debounce Pinc.2 , 1 , Main2
Loop
لطفا کمک کنید
End 'end program
Main1:
Portd = &B00000011
Debounce Pinc.2 , 1 , Main2
Wait 5
Portd = &B00000110
Debounce Pinc.2 , 1 , Main2
Wait 5
Goto Main1
Main2:
Porta = &B00000011
Debounce Pinc.1 , 1 , Main1
Waitms 100
Porta = &B00000110
Debounce Pinc.1 , 1 , Main1
Waitms 100
Goto Main2
میخواهم بوسیله دو کلید دیگر در برنامه زیر سرعت رقص نور را کم یا زیاد کنم
$regfile = "m16def.dat"
$crystal = 1000000
'-----------------------------
Config Portd = Output : Config Porta = Output : Config Pinc.1 = Input : Config Pinc.2 = Input
Do
Debounce Pinc.1 , 1 , Main1
Debounce Pinc.2 , 1 , Main2
Loop
لطفا کمک کنید
End 'end program
Main1:
Portd = &B00000011
Debounce Pinc.2 , 1 , Main2
Wait 5
Portd = &B00000110
Debounce Pinc.2 , 1 , Main2
Wait 5
Goto Main1
Main2:
Porta = &B00000011
Debounce Pinc.1 , 1 , Main1
Waitms 100
Porta = &B00000110
Debounce Pinc.1 , 1 , Main1
Waitms 100
Goto Main2
دیدگاه