I gave it a try too, and i'm also getting an error:
#include <avr/interrupt.h>
#include <avr/io.h>
void setup() {
//pin change interrupt on digital pin 5
//this corresponds to PCINT0_vect
PCICR |= (1 << PCIE0);
PCMSK0 |= (1 << PCINT21);
//pin change interrupt on digital pin 6
//this corresponds to PCINT1_vect
PCICR |= (1 << PCIE1);
PCMSK1 |= (1 << PCINT22);
//pin change interrupt on digital pin 7
//this corresponds to PCINT2_vect
PCICR |= (1 << PCIE2);
PCMSK2 |= (1 << PCINT23);
}
[glow]ISR_0( PCINT0_vect )[/glow]
{
//do something
}
ISR_1( PCINT1_vect )
{
//do something else
}
ISR_2( PCINT2_vect )
{
//do something different
}
void loop()
{
}
error pointing to highlighted line:
error: expected constructor, destructor, or type conversion before '(' token
Any idea what i might be doing wrong?
Greetings,
EriSan500