I am new here..
I have two IR sensors that give digital output (0 when there is something in front of it and 1 when there isn't).
I am using a ATxMEGA128 to run motors using these sensors but I am unable to read them simultaneously.
The way I am reading 1 pin is :
if(PORTD.IN & (1<<3))
this works perfectly fine but I do not know how to accept two inputs, For instance if my two sensors are on bit 1 and bit 3?
Can anyone please tell me the syntax?