Error: PCICR was not declared in this scope
all of interrupt constants in code fragment below throwing same error mentioned in thread title. i've reduced code bare minimum , still error:
i read nick's suggestion data definition @ top of file...same error. i've gone out of ide, reloaded it...same error. rebooted...same error. strange thing had code compiling 2 interrupt assignments before , working fine. i've tried adding various includes thought might help...no such luck. wish remember exact change made broke it, don't.
any ideas?
code: [select]
void setup()
{
cli();
pcicr |= (1 << pcie2); // interrupt service code
pcmsk2 |= (1 << pcint18) | (1 << pcint19);
sei();
}
void loop()
{
}
i read nick's suggestion data definition @ top of file...same error. i've gone out of ide, reloaded it...same error. rebooted...same error. strange thing had code compiling 2 interrupt assignments before , working fine. i've tried adding various includes thought might help...no such luck. wish remember exact change made broke it, don't.
any ideas?
i found error. somehow managed select attiny85 chip board when i'm using uno.
never mind...
never mind...
Arduino Forum > Using Arduino > Programming Questions > Error: PCICR was not declared in this scope
arduino
Comments
Post a Comment