
Re: AVGA as Arduino library
Hi Jerry
I indeed think that adapting the AVGA code to a Arduino is pretty simple since it's just a ATMega168 or ATmega328 chip on a board.
It has a bootloader on board to load the hex code into it.
I think it wil pretty much run out of the box without much efford.
Just hook up the resistor network to the pins and go.
About porting it to the arduino Wiring style language..
The problem is probably the assembly piece, since you cannot include a .S file in the arduino IDE. Basically you need to wrap it into a .CPP file with ASM directives.
The other thing what worries me is the fact the AVGA code hardwires a bunch of registers and I'm not sure if the GCC compiler will allow that incuding that in the regular arduino library templates.
Basically the arduino library templates dictates defining a Video class and wrap the functions into a CPP constructor and methods.
But I think it can be done so I'll give it a try
