I need to set the value of a variable depending on the position of switches on a number of input pins. I have tried if pin0=1 then let b7=1: if pin0=0 then let b7=0 but this does not work
I will have four inputs in total and need to ascribe a numerical value to a variable (b7) depending on the combination of outputs.
Any help appreciated.
Si
I will have four inputs in total and need to ascribe a numerical value to a variable (b7) depending on the combination of outputs.
Any help appreciated.
Si