Hi. I'd be very grateful for a bit of guidance. I have a 20M2 board - 7 outputs & 7 inputs. The outputs work fine but I'm having trouble with the inputs and I think I must be making a fundamental error in either my programming or in the way I have configured the inputs.
1. In reading the inputs, (for example input 7) I am using the syntax 'if pinC.7 = 1 then high <6>. I think this should make output 6 'high' when input 7 is 'on'. This doesn't work What am I doing wrong?
2. If I want to get input 7 to remain in a loop until the input os 'on', what syntax do I use?
3. Have I connected the inputs correctly? I have assumed each input is a pair of wires from the PicAxe board and that when a connection is made between these two wires, the input is 'on' (pinC.7 = 1). When the connection is broken, the input is 'off' (pinC.7 =0).
Thanks.
using editor 6.0.9.3 on Windows XP
1. In reading the inputs, (for example input 7) I am using the syntax 'if pinC.7 = 1 then high <6>. I think this should make output 6 'high' when input 7 is 'on'. This doesn't work What am I doing wrong?
2. If I want to get input 7 to remain in a loop until the input os 'on', what syntax do I use?
3. Have I connected the inputs correctly? I have assumed each input is a pair of wires from the PicAxe board and that when a connection is made between these two wires, the input is 'on' (pinC.7 = 1). When the connection is broken, the input is 'off' (pinC.7 =0).
Thanks.
using editor 6.0.9.3 on Windows XP