I have been trying to use this command but only being a novice I am lost. I get error 67 - undefined error. can anyone tell me how to define input pin? thanks
Sorry, I meant
if ( ( P3 & (1 << 5) ) != 0 )
if ( ( P3 & (1 << 5) ) == 1 )