((PINA & (1<<3))>0)
I've read through the tutorial in the forum about bitwise operations but I'm still a little confused. I know what the above code does. It gets the value (1 or 0) of the third pin in PORTA. I know that the comparison is redundant for a conditional statment (Any value other than 0 is true) but that isn't why I wrote that code. Is this the most efficient way of getting the value of the PIN or is there another way? Thank you for your advice.