Using Switch to choose a calculation output.
Posted: Tue Jan 10, 2017 9:04 am
Hello,
I am trying to display a LED on a every bit of every port sequentially.
To keep from having more than 1 led at a time on, I want to rule out all odd numbers.
Display 1 then 2, then 4, etc, on every port. The program is not complete i am aware, but I know that
nothing is going to work as I want the way it is.
Please look at the switch on the switch in macro "A". That is where I am not sure how to get the switch to choose 1 or 2
depending on an odd or even number.
If anyone can help me with this, I would appreciate it.
Program attached.
Thanks in advance.
I am trying to display a LED on a every bit of every port sequentially.
To keep from having more than 1 led at a time on, I want to rule out all odd numbers.
Display 1 then 2, then 4, etc, on every port. The program is not complete i am aware, but I know that
nothing is going to work as I want the way it is.
Please look at the switch on the switch in macro "A". That is where I am not sure how to get the switch to choose 1 or 2
depending on an odd or even number.
If anyone can help me with this, I would appreciate it.
Program attached.
Thanks in advance.