void setup() {
// put your setup code here, to run once:
DDRD=B11100000;
PORTD=B00011100;
}
void loop() {
// put your main code here, to run repeatedly:
bool X = ( PIND &(1<<PIND2));
if (!X)
{PORTD |=(1<<PIND5);
delay(2000);}
else
{PORTD &= ~(1<<PIND5);}
bool z = ( PIND &(1<<PIND3));
if (!z)
{PORTD |=(1<<PIND6);
delay(2000);}
else
{PORTD &= ~(1<<PIND6);}
bool y = ( PIND &(1<<PIND4));
if (!y)
{PORTD |=(1<<PIND7);
delay(2000);}
else
{PORTD &= ~(1<<PIND7);}
}