stimmer / DueVGA

Arduino Due VGA library
92 stars 30 forks source link

Problem with "colour" mode. #1

Open JerryI opened 11 years ago

JerryI commented 11 years ago

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.

stimmer commented 11 years ago

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);

JerryI commented 11 years ago

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