Ok im not sure why the pin check in the if statement doesn't work. It works fine by itself but not as in the statement below. Can someone tell me why?
im trying to create something like:
if((1 & 1) != 0) { //Do work }
uint8_t Check = 0b00000001 if((PORTB & _BV( PB7 ) & (Check & (1<<0))) != 0) { //Do work }
[/code]