Hey https://code.google.com/p/arduino-tvout/
this is an Arduino library (I checked it and it is working fine).
Now I want to compile this code for stand alone atmega (breadboard + atmega + some resistors and capacitors).
I have Atmega644, 1284, 324.
But this code is not a pure C: https://code.google.com/p/arduino-tvout/source/browse/TVout.cpp
this is C++
And it has some Arduino addons I think.
How can I use this library on stand-alone AVR chip? I need the easiest way.
I have the USB ASP programmer.
Please help.
Below is a link to a project that uses an Atmega1284p with the Arduino ide. This is a place to start looking at what is needed to add the 1284p to the Arduino environment and use the Arduino libraries and functions with other ATmega processors. This link includes a bootloader for the 1284p, that allows files to be uploaded with the Arduino IDE using a USB to TTL serial adapter. This was the site I used to help build a custom 1284p version of an Arduino board.
The procedures can be adapter to other AVR's as well.
ATmel's Studio 6 is another good tool for programming other Atmel processors. It has both C++ compiler and assembler.