I'm new to the PICAXE world and although I've no problem with most of the bits and pieces, I'm stuck on this one.
Anyone using the exclusive OR command in basic.
I'm playing aroung with a 293 motor driver and following some instructions from a book on inverting the directional control bits.
PICAXE 28X
code code code etc
high 1 ' to set forward direction
low 2
motor driver code etc.
pin1 = pin1 ^ 1 'to reverse direction
pin2 = pin2 ^ 1
Have tried simulator, no change in outputs 1 or 2 with EOR
Have tried a very basic programme to EOR outputs but still won't work
HELP please!!!!
Anyone using the exclusive OR command in basic.
I'm playing aroung with a 293 motor driver and following some instructions from a book on inverting the directional control bits.
PICAXE 28X
code code code etc
high 1 ' to set forward direction
low 2
motor driver code etc.
pin1 = pin1 ^ 1 'to reverse direction
pin2 = pin2 ^ 1
Have tried simulator, no change in outputs 1 or 2 with EOR
Have tried a very basic programme to EOR outputs but still won't work
HELP please!!!!