|
Re: IR Board Programming/Wiring Problems
You will also want to add a line of code surrounding all of this that states if you see multiple inputs from the board simultaneously, it should disregard all input from the board.
Since a disconnected wire results in a "1", and a connected wire that sees a signal results in a "1", the only way to tell the difference is to make sure you see only one signal wire sending a "1". This will protect against a runaway or out of control condition where the IR board is left disconnected and ALL your values return as "1" - nasty things can happen if you don't protect against this.
|