Hi Folks,
Im in need of some help. I'm fairly new to Arduino. I wrote a small program that allows me to control my light switches via relays. I'm also using IR for communication. The program works and it works well on the Arduino Mega and the Nano. However, I now want to transfer the program to attiny85s. I was able to put some basic programs on the attiny85 and it works great.
When I try to upload my IR program, the Tiny throws up all over itself. I'm assuming the Issue is the IRlibrary that I'm using. The google machine is not really helpful, I'm not getting anywhere with it. Any help will be appreciated.
-The program is 4MBs well below the tiny's onboard memory.
-I'm on OSX.
- The errors I'm getting are:
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp: In member function 'void IRsend::mark(int)':
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:172: error: 'TCCR2A' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:172: error: 'COM2B1' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp: In member function 'void IRsend::space(int)':
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:180: error: 'TCCR2A' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:180: error: 'COM2B1' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp: In member function 'void IRsend::enableIROut(int)':
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:198: error: 'TIMSK2' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:198: error: 'TOIE2' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:207: error: 'TCCR2A' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:207: error: 'WGM20' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:208: error: 'TCCR2B' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:208: error: 'WGM22' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:208: error: 'CS20' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:211: error: 'OCR2A' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:212: error: 'OCR2B' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp: In member function 'void IRrecv::enableIRIn()':
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:224: error: 'TCCR2A' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:229: error: 'TCCR2B' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:229: error: 'CS22' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:230: error: 'CS21' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:231: error: 'CS20' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:234: error: 'TIMSK2' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:234: error: 'TOIE2' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:236: error: 'TCNT2' was not declared in this scope
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp: In function 'void TIMER2_OVF_vect()':
/Applications/Arduino.app/Contents/Resources/Java/libraries/IRremote/IRremote.cpp:266: error: 'TCNT2' was not declared in this scope