Quote Originally Posted by FatalError
Code:
if (pinout = 0x02)
My statement comparing another varible didn't work. It does the same thing.
This isn't a comparison, it is an assignment; try this.
Code:
if (pinout == 0x02)
Quote Originally Posted by FatalError
What do you mean by declaring it as volatile? I am not familiar with the term.
Code:
volatile unsigned char pinout;