// C++ code
//
/*
This program blinks pin 13 of the Arduino (the
built-in LED)
*/
ISR(PCINT2_vect){
//PORTB ^= 0b00000100;
PORTD ^= 0b10000000;
}
ISR(PCINT0_vect){
PORTB ^= 0b00000100;
}
void setup()
{
// DDRB |= (1<<PB0) | (1<<PB1) | (1<<PB2);
// PORTB |= (1<<PB0) | (1<<PB1) | (1<<PB2);
DDRB = 0b0000100;
PORTB = 0b00000111;
DDRD = 0b1000000;
PORTD = 0b11100000;
PCICR = 0b00000101;
PCMSK2 = 0b01100000;
PCMSK0 = 0b00000011;
sei();
}
void loop()
{
delay(50000000); // Delay a little bit to improve simulation performance
}