366Views6Replies

Author Options:

Arduino Uno TV B Gone code error ? Answered

I just got an arduino (the arduino is a fake off ebay, didnt know at the time.) It runs off of a ATMEGA8A-PU. I have built a few projects that work but now following this tutorial:
http://www.righto.com/2010/11/improved-arduino-tv-b-gone.html

Not sure if im just missing something or what I've done wrong but the compiler keeps giving me the error of:

TVB.ino: In function 'void xmitCodeElement(uint16_t, uint16_t, uint8_t)':
TVB:92: error: 'TCCR2A' was not declared in this scope
TVB:92: error: 'COM2A0' was not declared in this scope
TVB:92: error: 'COM2B1' was not declared in this scope
TVB:93: error: 'TCCR2B' was not declared in this scope
TVB:93: error: 'WGM22' was not declared in this scope
TVB:106: error: 'TCCR2A' was not declared in this scope
TVB:107: error: 'TCCR2B' was not declared in this scope
TVB.ino: In function 'void setup()':
TVB:191: error: 'TCCR2A' was not declared in this scope
TVB:192: error: 'TCCR2B' was not declared in this scope
TVB.ino: In function 'void sendAllCodes()':
TVB:274: error: 'OCR2A' was not declared in this scope
TVB:275: error: 'OCR2B' was not declared in this scope

Discussions

0
None
steveastrouk

4 years ago

That's because your chip doesn't have the resources that the library needs. The board is not an "optiboot 8", that's the name of the bootloader on the chip.

0
None
steveastrouksteveastrouk

Answer 4 years ago

...and here I mean the chip specific library you need.

Try compiling the code against the "Arduino NG or older" board.

0
None
steveastroukAaamazzara

Answer 4 years ago

might have to get a really old copy of the arduino suite then. What are you using?

0
None
mpilchfamily

4 years ago

These kinds of errors tend to happen when the library is missing. If there is a library accociated with this project make sure you have it in the right folder.

0
None
Aaamazzarampilchfamily

Answer 4 years ago

I downloaded the only download provided and there was nothing said about a library. In the arduino sketch if I change the board to Arduino Uno then it compiles fine but once I switch it to the Optiboot8 (the board type it is apperently) it gets the errors again.