stimmer/DueVGA

Problem with "colour" mode.

Opened this issue · 2 comments

I have a monitor with 640x480 59Hz. Your library with "monochrome" mode works perfectly. But, "colour" mode doesn't work. See this/ http://www.youtube.com/watch?v=dQZaD2WOqXE

It is curiously, that your older(not library) "color" sketches worked normally.

Thanks for your message. From the video it looks to be an issue with timing. The timings generated by the library currently are a long way out of the VGA specification and it is an issue already on my to-do list. The older sketches were closer to the standard.

There are some things you can try:
Just before the VGA.begin() line try inserting this line, it will change the timings.
VGA.setMonitorFreqRange(31000,60000,55,75);

Also changing the resolution will change the timings (keep these a multiple of 8)
VGA.begin(304,240,VGA_COLOUR);

Thanks. This solution works with : " VGA.setMonitorFreqRange(31000,60000,55,75); // VGA.begin(240, 304, VGA_COLOUR);".