Does the "graphics" object ONLY work with TV ?
Bean
Posts: 8,129
I want to use the "graphics" object (vector text) with a VGA monitor. But I don't see any demos of it.
Can it be done ?
Bean
Can it be done ?
Bean
Comments
The tile structure is the same in both TV.spin and VGA.spin Configure a VGA.spin display with X tiles and Y tiles. Once you've done that, simply use graphics.spin the same way you would for the TV.spin driver. Graphics.spin just wants to know where the screen is and how many tiles it has. (gr.setup)
From there, it's just going to draw pixels to the HUB.
You will want to assign VGA colors to the palettes instead of the TV colors.
**If you have trouble making that work, post here and I'll go dig up my sample code when I am home.
Does anyone know of any code that uses "graphics" with VGA ?
Something I could borrow from...
Bean
http://forums.parallax.com/showthread.php?114646-Alert-All-Propellerheads-without-TV-ports-Graphics.spin-with-a-VGA-monitor!
This was the code I had archived at home.
But it is a starting point...
Thanks
Bean
Jeff
I've done this for the 3.5" touchscreen driver (based on the VGA driver) already to make graphics fill the screen...
Jeff
To get a full screen I reduced the Y tiles to 10 and increased vx to 3, so the monitor sees 640x480 pixels with 60Hz. The real resolution of the bitmap in memory is 256 x 160 with 4 colors per tile, so each bitmap buffer needs only 10kBytes.
Andy
Graphics_Demo_VGA.spin
I had forgotten that the VGA driver doesn't run at 640x480, but a special resolution...
This might work better to use one of the other drivers that does real 640x480 output...
Andy, I tried yours at it also works on both of my monitors although top and bottom look cut off.
If people tell me this version works, I'll take a stab at fixing up the colors.
Doesn't look like any attempt was made to pick the right colors.
It's not going to look as good as the TV version due to reduced palette, but it can be a whole lot better than this one...
Yes, I saw the same issue on Andy's.
Jeff
Andy
Both version look good.
I need to use the vector fonts on a VGA monitor and it looks like both version will work for that.
I assume Andy's version uses less memory since it only has 160 lines.
Thanks again guys, you're the best.
Bean