PDA

View Full Version : New: 640x240 VGA graphics driver



Bill Henning
02-05-2007, 11:38 AM
Hi guys,

I took a bit of a break from fighting with an ARM system, and I modified the 512x384 graphics driver so that it will work with my 640x480 limited small VGA monitor :)

I've uploaded it to the Propeller Object Exchange, but until it gets approved, you can download it from my site (link below).

Enjoy,

Bill

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com (http://www.mikronauts.com) - a new blog about microcontrollers

DogP
02-05-2007, 02:17 PM
Is that 640x480 full height interlaced, or is it actually 640x240 (sorta widescreen). Hopefully I'll have my chip tomorrow or Tuesday and I'll get to try some of these drivers out :) .

DogP

Bill Henning
02-05-2007, 03:17 PM
Full height, not interlaced.

As far as a monitor is concerned, it is 640x480 standard VGA

As the propeller does not have enough memory for a full 640x480 bitmap, every line is shown twice, resulting in a 640x240 display

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com (http://www.mikronauts.com) - a new blog about microcontrollers

DogP
02-05-2007, 03:39 PM
Oh... yeah, I was thinking interlaced because of lack of memory... but yeah, duplicated lines works too :) .

Pat

Bill Henning
02-05-2007, 03:59 PM
I just made a better plot pixel routine for it

[code]
PUB plot(x,y,v)
и if x => 0 and x < 640 and y => 0 and y < 240
иии if v
иииии pixels[y * 20 + x >> 5] |= |< x
иии else
иииии pixels[y * 20 + x >> 5] &= ! |< x


▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.mikronauts.com (http://www.mikronauts.com) - a new blog about microcontrollers