ich habe es nämlich so gelöst:
#include <avr/io.h>


#define T1 0x04
#define T2 0x08
#define LED1 0x20
#define LED2 0x40

int main()
{

DDRD |= 0x60;//PD5 und PD6 als Ausgänge setzen


while(1)
{
if (PIND & T1)
{
PORTD |= LED1;
}
if (PIND & T2)
{
PORTD |= LED2;
}
else
{
PORTD &= 0x00;
}
}
return 0;
}