Added comments

master
JohnD 6 years ago
parent 6ab7c011be
commit 5ce03e1d64

@ -13,17 +13,17 @@
int main(void)
{
DDRD &= ~(1<<2); // Eingang PD2
DDRD &= ~(1<<3); // Eingang PD3
DDRD &= ~(1<<2); // Activate PD2
DDRD &= ~(1<<3); // Activate PD3
PORTD |= (1<<2); // Enable Pull Up Resistor Pin D2
PORTD |= (1<<3); // Enable Pull Up Resistor Pin D3
PORTD |= (1<<2); // Enable Pull Up Resistor Pin D2
PORTD |= (1<<3); // Enable Pull Up Resistor Pin D3
EICRA |= (1 << ISC01)|(1 << ISC00);
EIMSK |= (1 << INT0);
EICRA |= (1 << ISC01)|(1 << ISC00); // Only at raising edge
EIMSK |= (1 << INT0); // Activate Interrupt INT0
EICRA |= (1 << ISC11)|(1 << ISC10);
EIMSK |= (1 <<INT1);
EICRA |= (1 << ISC11)|(1 << ISC10); // Only at raising edge
EIMSK |= (1 <<INT1); // Activate Interrupt INT1
sei();
@ -32,7 +32,7 @@ int main(void)
}
}
ISR(INT0_vect) //Aktiviert den Buzzer/LED und deaktiviert diese
ISR(INT0_vect)
{
}

Loading…
Cancel
Save