int0 on falling edge

This commit is contained in:
Matt Harlum 2015-02-11 23:04:02 +11:00
parent 04d7643185
commit 63eb4fe43c

View File

@ -178,7 +178,7 @@ int main (void) {
volatile char ret_char = 0;
DDRB &= ~(1 << DDB6 | 1 << DDB5); // PINB6 = PS/2 Clock, PINB5 = PS/2 Data both set as input
DDRA |= (0xFF);
EICRA |= (1 << ISC01); // Interrupt on Falling Edge
MCUCR |= (1 << ISC01); // Interrupt on Falling Edge
GIMSK |= (1 << INT0); // Enable Interrupt on PINB2 aka INT0
sei();