Hi all,
I have been writing some code to switch outputs on and off using serial commands with feedback which I have done ok using interupt.
I really want to switch the same outputs on and off using the input pins too which will also provide the same serial feedback. Can anyone please give me some pointers? I have been trying to use several interupts and if I put the if pin6=1 routine in the main body the serial stops.
Also, what is wrong with this statement: if pin6=1 then let b0=$31? I have tried several variations of this using write or swapping the data value and the variable location, etc and it just does not compile.
Many thanks,
James.
I have been writing some code to switch outputs on and off using serial commands with feedback which I have done ok using interupt.
I really want to switch the same outputs on and off using the input pins too which will also provide the same serial feedback. Can anyone please give me some pointers? I have been trying to use several interupts and if I put the if pin6=1 routine in the main body the serial stops.
Also, what is wrong with this statement: if pin6=1 then let b0=$31? I have tried several variations of this using write or swapping the data value and the variable location, etc and it just does not compile.
Many thanks,
James.