dxw00d:
But, if it's an output pin, you should know whether you've set it HIGH or LOW.
that is true, however it gets set up high or low in a several level deep if statement, so I thought it would be easiest and most fool proof to just read the condition of the output.