|
switches in order
Here is a piece of code in PBasic 2.5
IF p1_sw_top=1 AND p2_sw_top=1 then
p1_y=200
This means that at any given time, if p1 switch and p2 switch are pressed together p1_y=200, but here is my question:
Is there a way that you can program so that the switches will have to be pressed in order- first p1 switch and then p2 switch or vice versa- then only p1_y=200???
|