shah_siddiquee
Member
Hi. I got some code problem in my 28x2. I am using picaxe ready made remot for my project. When i press a button it does the if command first and then put value in b0. So everytime i have to press twice the button to wright value in b0. Why is that happening? Please help. I am giving my commands bellow.
Irin c.0, b0
If b0 = 1 then
Let b0 = b1
Endif
If b0 = 16 and b1 = 1 then
Let b2 = b2+5
Endif
Now when press remot button 2, it puts 1 in b0, thats right. But when i press remot key up(which is 16) it does not add 5 in b2. When i press second time, it adds. Can you tell me whats wrong in my command please. Thanks
Irin c.0, b0
If b0 = 1 then
Let b0 = b1
Endif
If b0 = 16 and b1 = 1 then
Let b2 = b2+5
Endif
Now when press remot button 2, it puts 1 in b0, thats right. But when i press remot key up(which is 16) it does not add 5 in b2. When i press second time, it adds. Can you tell me whats wrong in my command please. Thanks