Instructables

Arduino Uno TV B Gone code error ?

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

steveastrouk5 months 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.

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

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

Aaamazzara (author)  steveastrouk5 months ago

same error still.

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

mpilchfamily5 months 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.

Aaamazzara (author)  mpilchfamily5 months 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.