ok ich werde mal beides Ausprobieren.
mein ISR Code:
Code:volatile int winkel1, winkel2; ISR(SIG_INTERRUPT0){ if (PINC & (1<<PINC2)){winkel1--; /*LED(2,1);LED(3,0);*/} else if ( !(PINC & (1<<PINC2)) ){ winkel1++;/* LED(2,0); LED(3,1);*/} } ISR(SIG_INTERRUPT1){ if (PINC & (1<<PINC3)){winkel2--; /*LED(2,1);LED(3,0);*/} else if ( !(PINC & (1<<PINC3)) ){winkel2++;/* LED(2,0); LED(3,1);*/} }
Lesezeichen