Hello. I'm having trouble with a sketch I wrote in 2013. When I wrote it, it compiled and worked fine, using Arduino IDE. I haven't changed it, but now it won't compile!
I'm not sure what version of Arduino I had then, (whatever was current in 2013). I tried it with 1.6.5, 1.0.1, 1.0 and 0023. I tried it with the board set as Uno, as Due... In all these cases, it won't recognize the C terms, like DDRA and TIMS.
I am running a bare ATMega 328, but I haven't even got past the compiling!
What happened? What changed? How can I fix it? Thank you for your help.
Arduino: 1.6.5 (Mac OS X), Board: "Arduino Duemilanove or Diecimila, ATmega328"
_3_12_2013_horizontal.ino: In function 'void setup()':
_3_12_2013_horizontal:56: error: 'DDRA' was not declared in this scope
_3_12_2013_horizontal:71: error: 'TIMSK' was not declared in this scope
_3_12_2013_horizontal:74: error: 'GIMSK' was not declared in this scope
_3_12_2013_horizontal:74: error: 'PCIE' was not declared in this scope
_3_12_2013_horizontal:75: error: 'PCMSK' was not declared in this scope
_3_12_2013_horizontal.ino: In function 'void loop()':
_3_12_2013_horizontal:93: error: 'TIMSK' was not declared in this scope
_3_12_2013_horizontal.ino: In function 'void display_number(uint8_t, uint8_t)':
_3_12_2013_horizontal:123: error: 'PORTA' was not declared in this scope
_3_12_2013_horizontal.ino: In function 'void clear_display()':
_3_12_2013_horizontal:230: error: 'PORTA' was not declared in this scope
_3_12_2013_horizontal.ino: In function 'void rot()':
_3_12_2013_horizontal:237: error: 'TIMSK' was not declared in this scope
In file included from /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/Arduino.h:30:0,
from _3_12_2013_horizontal.ino:10:
_3_12_2013_horizontal.ino: In function 'void PCINT_vect()':
_3_12_2013_horizontal.ino:304:6: warning: 'PCINT_vect' appears to be a misspelled signal handler [enabled by default]
'DDRA' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.
_3_12_2013_horizontal.ino (8.23 KB)